PayPal和沙盒付款凭证:沙盒和生产字段



这个API非常新。我想生成一个PayPal支付按钮。我创建了一个作为供应商和买家的沙盒PayPal。两个帐户。

我不知道如何获取"沙盒"和"生产"字段。

我没有创建应用程序,一直要求我确认并发送电子邮件,我已经确认了 10 次。

paypal.Button.render({
env: 'sandbox', // sandbox | production
// PayPal Client IDs - replace with your own
// Create a PayPal app: https://developer.paypal.com/developer/applications/create
client: {
sandbox:    'AFcWxV21C7fd0v3bYYYRCpSSRl31AULfweezb3a.97AL03QEPQS.cIvX',
production: 'QGWT5LPKXCYKNMEW'
},
// Show the buyer a 'Pay Now' button in the checkout flow
commit: true,

我不知道如何在"客户端"对象中获取沙盒和生产字段。

谢谢!

要创建电子邮件确认和验证的沙盒帐户,请参阅以下步骤:

1. Login to http://developer.paypal.com/ with your LIVE PayPal account
2. Click Dashboard
3. Click sandbox accounts
4. Click Create account button on the top right corner
5. Create a business account for seller and a personal account for buyer
6. Please add bank account and credit card and also populate some amount to your account
7. The email address need not be an real one.

请参考以下链接作为创建沙盒的参考:

https://developer.paypal.com/docs/classic/lifecycle/sb_create-accounts/

有关PayPal Express 结帐客户端集成,请参阅以下链接,您可以在其中找到获取客户端 ID 详细信息的步骤:

https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/client-side-REST-integration/

https://developer.paypal.com/demo/checkout/#/pattern/client

最新更新