PayPal Unique Transaction ID

I’m using Ionic’s Native PayPal plugin, and I can’t figure out how to get the Unique Transaction ID. In PayPal Merchant account this looks like this:

Mobile Express Checkout Payment Received (Unique Transaction ID #2DQ323412348184972P)

Looking at the docs you only get an object with some data after a payment was executed, right? I would assume that you can use one of the values in there (id probably) to talk to other APIs to get more information about the payment.

Yes, this is the response I get, and I have an ID there, but not sure how to use it from here onwards…

{"client":{"environment":"sandbox","product_name":"PayPal iOS SDK","paypal_sdk_version":"2.17.0","platform":"iOS"},"response_type":"payment","response":{"id":"PAY-55S22348738162090FERTF3GI","state":"approved","create_time":"2017-06-07T20:10:12Z","intent":"sale"}}

5 minute research:


  1. Accept a Single Payment and receive back a proof of payment.
  2. On your server, Verify the Payment, Capture the Payment, or Process the Order (PayPal Developer site) using PayPal’s API.

where “Verify the Payment” e.g. links to
where there is a link to
which seems to use this “PAY-…” thingie to get more data on the payment.

1 Like

Thanks, yes, this is it! The only downside is that it need to be implemented on the backend.

Thanks a lot!!!

Hello, I’ve been having the same problem for a while and I do not know how to solve this.
Could you explain to me how you did it? Thank you.