如何使用PayPal订阅修订

发布于 2025-01-27 13:45:31 字数 608 浏览 1 评论 0原文

我很好奇是否可以使用订阅“ applyoval_pending”的订阅使用PayPal订阅按钮修订方法。

paypal.Buttons({

        createSubscription: function(data, actions) {
  
          return actions.subscription.revise("I-HAHWJUY845PE", {
  
            'plan_id': 'P-6GE98585DE1334530MJ3IPDA',
  
          });
  
        },
  
        onApprove: function(data, actions) {
  
          alert('You have successfully created subscription ' + data.subscriptionID); // Optional message given to subscriber

        }
      }).render('#P-8B719909FS0268804MJ3IPDA'); // Replace with your plan ID
  

我已经尝试过,但它一直失败,说找不到资源!

I am just curious if it is possible to use the Paypal subscription Button revise method with a subscription that is of the status "APPROVAL_PENDING".

paypal.Buttons({

        createSubscription: function(data, actions) {
  
          return actions.subscription.revise("I-HAHWJUY845PE", {
  
            'plan_id': 'P-6GE98585DE1334530MJ3IPDA',
  
          });
  
        },
  
        onApprove: function(data, actions) {
  
          alert('You have successfully created subscription ' + data.subscriptionID); // Optional message given to subscriber

        }
      }).render('#P-8B719909FS0268804MJ3IPDA'); // Replace with your plan ID
  

I have tried but it keeps failing, saying resource is not found!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凌乱心跳 2025-02-03 13:45:31

否。如果批准正在待处理,请创建一个新的订阅,而不是修订从未批准的订阅,而是忘记它。

No. If approval is pending, create a new subscription rather than revising one that was never approved to begin with, and forget about it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文