简体   繁体   English

如何使用 api 取消 PayPal 参考交易

[英]How to cancel a PayPal reference transaction using api

I am trying to cancel a PayPal reference transaction (I use PayPal's c# api).我正在尝试取消 PayPal 参考交易(我使用 PayPal 的 c# api)。 I tried using PayPalAPIInterfaceServiceService.DoVoid(), and PayPalAPIInterfaceServiceService.ManageRecurringPaymentsProfileStatus() with profile ID "B-3E365702...", but I get an error: "The profile ID is invalid".我尝试使用配置文件 ID“B-3E365702...”的 PayPalAPIInterfaceServiceService.DoVoid() 和 PayPalAPIInterfaceServiceService.ManageRecurringPaymentsProfileStatus(),但出现错误:“配置文件 ID 无效”。 What API call can I use to cancel a reference transaction?我可以使用什么 API 调用来取消参考交易?

You can't cancel a reference transaction, you can only refund transactions.您不能取消参考交易,只能退还交易。

It appears you actually want to cancel a billing agreement (which is something that's used to create reference transactions).看来您实际上想要取消计费协议(这是用于创建参考交易的东西)。 How you cancel one will depend on the API used to create it.如何取消将取决于用于创建它的 API。 If you are using the classic NVP/SOAP API, then you are probably looking for BAUpdate or METHOD=BillingAgreementUpdate .如果您使用的是经典的 NVP/SOAP API,那么您可能正在寻找BAUpdate 或 METHOD=BillingAgreementUpdate

Since you mention a "c# api" you are likely using some SDK which would include a function that implements this.由于您提到了“c# api”,您可能会使用一些 SDK,其中包括实现此功能的 function。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM