我即将将这种激活的非现场支付方法集成到狂欢节中:payments/integrations/directebanking.rb
我在Spree::Gateway中创建了一个app/models/gateway类,以便在管理面板中配置该方法:
class Spree::Gateway::Directebanking < Spree::Gateway
preference :credential1, :string
preference :credential2, :string
preference :credential3, :string
preference :credential4, :string
def provider_class
ActiveMerchant::Billing::Integrations::Directebanking
end
end此外,我还将这些行添加到config/application.rb中:
config.after_initialize do
Rails.configuration.spree.payment_methods << Spree::Gateway::SofortUeberweisung
end然而,现在我被困在三件事上:
发布于 2014-06-19 05:57:59
不是真的回答你的问题,但给你。
offsite_payment宝石是最近才从ActiveMerchant中提取出来的。最好现在只使用ActiveMerchant。
如果您想使用offsite_payment,我认为您应该使用新重命名的类:
def provider_class
OffsitePayments::Integrations::Directebanking
endhttps://stackoverflow.com/questions/24097830
复制相似问题