Getting trxId from PayPal buttons API when sending the request

I’m working on the integration with PayPal using the Smart Payment Buttons, and I need to catch the trxId generated when the user presses the "Pay With PayPal", when I print the info on the console, I can see the value I need, but when debugging or trying to get the value of the var, I’m getting undefined all the times, what I’m missing?

Below there’s an image that explains the issue

My only guess so far is that there’s some sort of security that prevents from getting this value?

currentIssue

23 thoughts on “Getting trxId from PayPal buttons API when sending the request”

Leave a Comment