4

我可以使用 RoR 中的 ActiveMerchant 成功地直接向 PaPpal 付款。

如何为交易退款?

4

2 回答 2

2

汇款将涉及额外的 PayPal 费用。我建议使用 ActiveMerchant 退款方式。

https://github.com/Shopify/active_merchant/blob/master/lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb

于 2013-06-27T14:27:07.720 回答
0

Cody Fauser 对使用 RoR 在 ActiveMerchant 上进行 paypal 交易的过程进行了很好的总结。

一旦你在测试模式下运行,退款很简单。对于 activemerchant,它们被称为“转移”。

在控制器中,只需执行以下操作:

success = EXPRESS_GATEWAY.transfer(amount * 100, paypal_email_to_refund_to, :currency => currency.name, :subject => "Withdrawal from My Site", :note => "A personal message if you want")
于 2011-03-31T15:08:07.417 回答