onApprove data.paymentID is undefined

nick_developer
Contributor
Contributor

 

Hi, 

I'm building a client approve then a server side order capture.  

 

After calling onApprove in client, I get the data.orderID and data.payerID from PayPal response, but the data.paymentID is undefined. 

On older API I was using payerID and paymentID after onAuthorize (now it's onApprove,right?) 

 

So how can I capture the order on server side if I have no paymentID ? 

On the new API to capture an order on server side is needed only the data.oderID received from Paypal Response ?

 

thanks 

 

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.