user2528012
user2528012

Reputation: 89

How to partial refund the paypal invoice created using Invoicing SDK

We are using paypal "CreateAndSendInvoice" function to create and send an invoice,Now we want to partial refund this invoice once it have been paid(Refund for broken items during shipment) Is this possible to partially refund invoice payment?

We tried to use Adaptive Payment "Refund" function using "transactionId" parameter but looks like we also need to specify "payKey" or "trackingId" for refund.

Can we use Adaptive Payments function here? Where we can get these parameters ("payKey" or "trackingId") for invoice as we do not see anything like that in IPN message?

Upvotes: 1

Views: 585

Answers (1)

Zain Ali
Zain Ali

Reputation: 15993

You may use the "RefundTransaction API" for this purpose.

Upvotes: 1

Related Questions