Getting trxId from createOrder

camicase82
New Community Member

Hi guys, currently I'm working on the PayPal integration using the paypal.Buttons API, and I want to capture the trxId that I get back from the order object I get from calling actions.order.create, but for some reason, I can access the actual value, when printing the variables, I can see the right info, but If I make an order.value, I'm getting undefined, below there an image showing the issue

 

trxIdIssuetrxIdIssue

 

As you can see from the image, just printing the object, shows the trxId, but trying to access the value directly fails, also, when I tried to debug the code, I get plenty of errors on the console and all values in the order object are undefined, how can we get this value, is there any security lock that prevente me getting it?

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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