Paypal文档

2024-10-05 12:19:38 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在用python设置一个web签出。你知道吗

here返回url将变量显示为"PayerID" 但是here它显示为"Payer-ID"

是哪个?你知道吗


Tags: webidurlherepayerpayerid
1条回答
网友
1楼 · 发布于 2024-10-05 12:19:38

(1)。接受贝宝支付

When the user approves the payment, PayPal redirects the user to the return_url that was specified

when the payment was created. A payer Id and payment Id are appended to the return URL, as PayerID and paymentId:

http://return_url?paymentId=PAY-6RV70583SB702805EKEYSZ6Y&token=EC-60U79048BN7719609&PayerID=7E7MGXCWTTKK2

(2)。使用支付API接受PayPalhttps://developer.paypal.com/docs/integration/web/web-checkout/

payment = paypalrestsdk.Payment.find("Payment-ID")
payment.execute({"payer_id": "Payer-ID "})

Note the HATEOAS links in the example response above. Direct the user to the approval_url on the PayPal site, so that the user can approve the payment. PayPal then redirects the user to the return_url that was specified when the payment was created. A payer ID is appended to the return URL, as Payer-ID.

相关问题 更多 >

    热门问题