Paypal Express Checkout with ActiveMerchant as in Shopify

こ雲淡風輕ζ 提交于 2019-12-22 00:43:07

问题


I'm successfully using Paypal Express Checkout in a marketplace web app passing for every seller the three parameters to the PaypalExpressGateway (login, password and signature). So, I see that Shopify lets the seller set only the e-mail address of the Paypal account requesting to grant scott_api1.jadedpixel.com as the API Partner Username. I could't find anything in the ActiveMerchant doc on how I can do it...Someone can help?

Thanks a lot, zetarun


回答1:


We use PayPals "Accelerated Boarding" method of setup for Express. They should send you an email after the first attempted sale with a link that automatically sets up the correct API settings.

To manually set them up, you can follow the instructions listed in our PayPal wiki, http://wiki.shopify.com/PayPal which are as follows:

Third-party authentication: Grant Shopify the appropriate API authentication permissions 1. Log in to your PayPal account and click the Profile subtab. 2. Click the API Access link in the Account Information column. 3. Click the Grant API Permission link. 4. In the Enter an API Partner Username field, enter scott_api1.jadedpixel.com. 5. Check the following API permissions: * Express_Checkout * Direct_Payment * Admin_API * Auth_Settle 6. Click the Save button.

Best regards,

Mike @ Shopify




回答2:


Ask the client to grant permissions on paypal and pass in the client's paypal email as :subject when creating an instance of the gateway:

ActiveMerchant::Billing::PaypalExpressGateway.new(
  :login => '...', :password => '...', :signature => '...',
  :subject => 'client@example.com')


来源:https://stackoverflow.com/questions/2560690/paypal-express-checkout-with-activemerchant-as-in-shopify

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