可以通过 API 取消 PayPal 自动付款吗? (通过托管按钮创建的订阅)
可以通过 API 取消 PayPal 自动付款吗?这是通过托管按钮创建的“订阅”。
我有“自动付款号码”和“交易ID”。
Can you cancel a PayPal automatic payment via API? It's a "Subscription" created via Hosted button.
I have the "Automatic payment number" and the "Transaction ID".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
是的。
请查找此参考:
根据 PAYPAL,您可以利用 ManagerecurringPayments API 执行三种操作中的任意一种。
暂停状态可以取消。
状态可以暂停。-
暂停状态可以重新激活。--
Yes.
Please find this Reference:
Accodring to PAYPAL you can take any of three actions utilizing the ManagerecurringPayments API.
Suspended state can be canceled.
state can be suspended.-
suspended state can be reactivated.--
我在找到解决方案之前找到了这个线程,并认为我会回来给出答案。 (C#.Net 解决方案)
您将需要以下 nuget 包:
以及以下参考文献:
这是代码:
I found this thread before finding a solution, and thought I'd come back to give the answer. (C#.Net Solution)
You will require the following nuget packages:
And the following references:
Here's the code:
“订阅是通过网站支付标准‘订阅’按钮创建的。2009 年之前,订阅配置文件 ID 以 S-XXXXXXXX 开头。您无法通过任何 API 调用来管理这些订阅。2009 年之后,订阅配置文件 ID 以I-XXXXXX。您可以通过 ManageRecurringPaymentsProfileStatus API 调用取消这些订阅。”
遇到了同样的问题,刚刚阅读了 Robert 的文章,它有效,您可以取消标准网站使用 API 订阅。
"A subscription is created via a Website Payments Standard 'Subscribe' button. Before 2009, the subscription profile ID started with S-XXXXXXXX. You are not able to manage these subscriptions via any API calls. After 2009, the subscription profile ID starts with I-XXXXXX. You are able to cancel these subscriptions via the ManageRecurringPaymentsProfileStatus API call."
Was having the same problem and just read it by Robert and it works, you can cancel standard website subscription using API.
我认为您无法使用 API 取消 Paypal 标准支付事件专业版的付款,而只有快速结账才可以。我尝试并收到错误消息:“定期付款 API 不支持订阅配置文件。”。您可以了解更多在这里。
I don't think you can use the API to cancel a payment with Paypal standard payment event pro while only express checkout will work. I tried and got the error message: "Subscription Profiles not supported by Recurring Payment APIs.". You can find out more here.