简体   繁体   English

直接结账的动态Paypal Payee

[英]Dynamic Paypal Payee with direct checkout

I'd like to have different Paypal payees depending on the URL being viewed and using direct checkout so the user never leaves my site. 我希望有不同的Paypal收款人,具体取决于所查看的URL和使用直接结帐,因此用户永远不会离开我的网站。 So for example at example.com/brandA someone could buy a product that brandA is selling and brandA gets paid, and at example.com/brandB someone could buy a product that brandB is selling and brandB gets paid. 例如,在example.com/brandA,有人可以购买brandA正在销售的产品和brandA获得付款的产品,而在example.com/brandB,有人可以购买brandB正在销售的产品和brandB获得付款的产品。 Can I do this all through an API where all I need to specify is the payee email address? 我是否可以通过API完成此操作,我需要指定的是收款人电子邮件地址? Or does each payee need to set up a Paypal Payments Pro account? 或者每个收款人是否需要设置Paypal Payments Pro帐户?

If you're processing the payments using Payments Pro (PayFlow or DoDirectPayment) then each seller would need Pro enabled on their own account, and you'd need to have them setup Permissions or use the Permissions API to make API calls on their behalf. 如果您使用Payments Pro(PayFlow或DoDirectPayment)处理付款,那么每个卖家都需要在自己的帐户上启用Pro,并且您需要让他们设置权限或使用权限API代表他们进行API调用。

If you go with Express Checkout you can just set the PAYMENTREQUEST_n_SELLERPAYPALACCOUNTID parameter to the email address of the PayPal account you'd like the money to fall to. 如果您使用Express Checkout,您只需将PAYMENTREQUEST_n_SELLERPAYPALACCOUNTID参数设置为您希望将钱投入的PayPal帐户的电子邮件地址。 That will work without any permissions necessary. 没有任何必要的权限,这将工作。

Note: the n in the parameter name would be a 0,1,2,etc. 注意:参数名称中的n将是0,1,2等。 depending on how many payments were included on the order. 取决于订单中包含的付款金额。 With a single payment you would just use PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID=some@emailaddress.com 只需一次付款,您就可以使用PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID = some@emailaddress.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM