我对这个API非常陌生。我想生成一个PayPal PAY按钮。我已经创建了一个沙盒贝宝作为供应商和买家。两个账户。
我不知道如何获取“沙箱”和“生产”字段。
我还没有创建应用程序,所有的时间都要求我确认并发送电子邮件,我已经确认了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,..。
我不知道如何在'client‘对象中获取沙箱和生产字段。
谢谢!
发布于 2017-07-07 20:28:20
要创建已确认和验证的电子邮件沙箱帐户,请参考以下步骤:
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快速结帐客户端集成的信息,请参阅以下链接,您可以在这些链接中找到获取客户端id详细信息的步骤:
https://stackoverflow.com/questions/44930944
复制相似问题