Can I save a unique ID in paypal side like invoice_id after paypal popup closes

pranavpinarayi
Contributor
Contributor

Hi
I need to store my applications transaction id in paypal console. I will get this transaction id only after closing the paypal popup. I hear that we can use invoice_id for this. But unfortunate invoice_id can pass only to createOrder. Is ther any option to pass this after paypal popup closes. ie in authorize call or anything. Or is there any other solution. Please help

Login to Me Too
1 REPLY 1

MTS-Aaron
PayPal Employee
PayPal Employee

Hi @pranavpinarayi 

 

There is an "Update" option available for a transaction that allows you to "add" an invoice ID after a customer approves a transaction. This can be seen in this documentation. You simply need to make a "Patch" call to that transaction to add in the invoice ID. 

 

I hope that helps!

-Aaron

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.