2017-07-05 190 views
0

即時通訊此API非常新。我想生成PayPal PAY按鈕。我已經創建了一個SANDBOX 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

要創建電子郵件確認和驗證測試區帳戶,請參考下面的步驟:

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