2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ActiveMerchant1.46.0からOffsitePaymentsというgemに分割されたので注意しましょう

2
Last updated at Posted at 2015-02-04

参考: https://github.com/Shopify/active_merchant/blob/master/CHANGELOG

ActiveMerchant1.46.0から、Railsに依存する処理がOffsitePaymentsというgemに分割されました。
(1.46以前から分割はされてたけど依存gemとして残ってました。それが1.46で依存関係も削除されたっぽいです)

そのために例えばPayPalでipnを受け取るときに PayPal::Notification インスタンスを使っていると思いますがそのクラスの名前空間が変更になっています。

  • Gemfilegem 'offsite_payments' を追記
  • ActiveMerchant::Billing::Integrations::Paypal::Notification と書いていた箇所を OffsitePayments::Integrations::Paypal::Notification と変更

注意点としてはモジュールのトップレベルが ActiveMerchant から OffsitePayments に変更されているところです。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?