Cdke2ko
Cdke2ko

Reputation: 25

Refunding a REST API-captured payment using NVP?

I'm trying to implement refunds for payments captured using the REST API's "capture payment" functionality. I'm saving the transaction ID for reference.

My question is: can I use NVP for refunds in this scenario, or do I need to switch to the REST API for refunds as well?

I couldn't find this information in the documentation. Currently, my refunds are handled through NVP, but I'm moving to using the REST API for order creation and capture. Ideally, I'd like to use the saved transaction ID from the capture process to initiate the refund via NVP.

Is this approach feasible, or is using the REST API mandatory for refunds initiated after a REST API capture?

Upvotes: 1

Views: 53

Answers (1)

Preston PHX
Preston PHX

Reputation: 30457

Yes, it is possible to use the legacy NVP/SOAP RefundTransaction API operation to refund a capture ID that was created using a REST API. You can test this in the PayPal sandbox.

Upvotes: 0

Related Questions