【问题标题】:PayPal and Sandbox payment credentials : sandbox and production fields贝宝和沙箱支付凭证:沙箱和生产领域
【发布时间】:2017-12-09 09:37:02
【问题描述】:

我对这个 API 很陌生。我想生成一个 PayPal PAY 按钮。作为供应商和买家,我创建了一个 SANDBOX Paypal。两个帐户。

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

我还没有创建APP,一直要求我确认并发送电子邮件,我已经确认了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,

...

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

谢谢!

【问题讨论】:

    标签: paypal paypal-sandbox sandbox


    【解决方案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

    【讨论】:

      猜你喜欢
      • 2017-08-23
      • 2012-08-31
      • 2020-11-28
      • 2013-06-05
      • 2014-06-30
      • 2017-05-06
      • 2011-02-21
      • 1970-01-01
      • 2017-09-10
      相关资源
      最近更新 更多