5

payu.in支払いゲートウェイをRailsアプリに統合しようとしています。私は彼らの宝石をアプリケーションに統合しましたが、

/ admin /payment_methods / new

プロバイダーオプションの下に支払いゲートウェイが表示されません。

http://guides.spreecommerce.com/payment_gateways.htmlに規定されている手順に従いました

私のアプリ/models/spree/gateway/payu.rbは次のようになります:

module Spree
  class Gateway::Payu < Gateway
    def provider_class
      ActiveMerchant::Billing::Integrations::PayuIn
    end
  end
end
4

2 に答える 2

4

私はあなたがこのようなものが必要だと信じています:

config.after_initialize do |app|
  app.config.spree.payment_methods += [
    Spree::BillingIntegration::PaypalExpress,
    Spree::BillingIntegration::PaypalExpressUk
  ]
end

https://github.com/spree/spree_paypal_express/blob/master/lib/spree_paypal_express/engine.rb#L23-28を参照してください)

于 2012-11-04T23:38:28.610 に答える
1

私にとっては、同様のコード行を追加したときに機能しました。

config.after_initialize do
  Rails.configuration.spree.payment_methods << Spree::PaymentMethod::Pagarme
end

私のconfig/application.rbファイルに。

(私はそれをhttp://blog.siyelo.com/active-merchant-and-spreeで見ました)

于 2014-03-26T16:32:43.663 に答える