refund_status NO_API_ACCESS_TO_RECEIVER, paypal response

人盡茶涼 提交于 2019-12-02 08:54:27

问题


I'm using this gem for payments in my rails app:

https://github.com/jpablobr/active_paypal_adaptive_payment

I can not make a refund, I get the next message in response log:

...refund_status="NO_API_ACCESS_TO_RECEIVER">]> response_envelope=#<Hashie::Rash ack="Success"....

I am using the pay_key for make a refund.

Its possible fix this error?

Thank you so much!


回答1:


Ok the problem was, For a receiver to grant permission to refund to the API Caller:

Login to www.paypal.com (For Sandbox: www.sandbox.paypal.com - Make sure you are already signed in https://developer.paypal.com) and login with the receiver account. Goto Profile -> API Access -> Grant API Permission -> Input the API Caller (Example: May6_1307031077_biz_api1.paypal.com) in Third Party Permission Username textbos and click Lookup button -> Enable checkbox for "Issue a refund for a specific transaction" and click Add button.

This is how receiver can grant permission to API Caller.

Once this is enabled, the refund should work.

Founded in https://www.x.com/developers/paypal/forums/adaptive-payments-api/adaptive-refund-notprocessed

Edited.......

You can see on https://www.x.com/devzone/articles/paypal-permissions-and-advantages-integrating-permissions-api If you need make this feature with Api you can use this gem:

https://github.com/moshbit/paypal_permissions

Thank you very much!




回答2:


I was having the exact same problem and my issue could not be resolved by the accepted solution. My problem was that I sent money from a merchant account to a seller account and was trying to refund the transaction, but there is (currently) no way to grant API permissions from a personal account to allow the refund transaction to go through. I just called Paypal, and they said that there's no way to complete the refund I was attempting to do, but since I only needed the refund for testing purposes (to make sure there was always money in my merchant account), they suggested that I instead just send an equal payment from my personal account back to my merchant account. I hope this helps someone.



来源:https://stackoverflow.com/questions/12516334/refund-status-no-api-access-to-receiver-paypal-response

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!