PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, November 22, 2022

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

 November 22, 2022     c#, paypal, php     No comments   

Issue

I am trying to cancel a PayPal reference transaction (I use PayPal's 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". What API call can I use to cancel a reference transaction?


Solution

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. If you are using the classic NVP/SOAP API, then you are probably looking for BAUpdate or METHOD=BillingAgreementUpdate.

Since you mention a "c# api" you are likely using some SDK which would include a function that implements this.



Answered By - Preston PHX
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing