如何使用PayPal订阅修订
我很好奇是否可以使用订阅“ 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
否。如果批准正在待处理,请创建一个新的订阅,而不是修订从未批准的订阅,而是忘记它。
No. If approval is pending, create a new subscription rather than revising one that was never approved to begin with, and forget about it.