I can successfully make a direct payment to PaPpal using ActiveMerchant in RoR.
How can I make refund to a transaction?
I can successfully make a direct payment to PaPpal using ActiveMerchant in RoR.
How can I make refund to a transaction?
Money transfer will involve additional PayPal fees. I suggest to use the ActiveMerchant refund method.
Cody Fauser gives a great run down on the process to get a paypal transaction working on ActiveMerchant with RoR.
Once you get that running in test mode, it's simple to do refunds. With activemerchant, they're called 'transfers'.
In the controller just do something like below:
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")