微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

paypal 中的保险库错误启用订阅

如何解决paypal 中的保险库错误启用订阅

您好,我正在尝试使用 paypal 订阅我的应用程序。我在沙盒中创建了订阅计划和产品,因为它仍然是一个测试帐户。当我将代码实施到我的 ionic 应用程序中时,我收到此错误

enter image description here

这是我添加到 index.html 的脚本代码

<script
  src="https://www.paypal.com/sdk/js?client-id=qwe...&vault=true">
</script>

我还在我的 .ts 页面添加代码

setTimeout(() => {
  // Render the PayPal button into #paypal-button-container
  <any>window['paypal'].Buttons({

    // Set up the transaction
    createOrder: function (data,actions) {
      return actions.order.create({
        purchase_units: [{
          amount: {
            value: _this.data.paymentAmount
          }
        }]
      });
    },// Finalize the transaction
    onApprove: function (data,actions) {
      return actions.order.capture()
        .then(function (details) {
          // Show a success message to the buyer
          alert('Transaction completed by ' + details.payer.name.given_name + '!');
          console.log(details)
        })
        .catch(err => {
          console.log(err);
        })
    }
  }).render('#paypal-button-container');
},500)

在我的 paypal 帐户的沙箱中,我也启用了保管库。

enter image description here

我不确定我还能做些什么来使保险库成为真实。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。