Validating Checkout payments

blinksbjerg
New Community Member

Hi,

 

I've added the buttons from

 

https://developer.paypal.com/docs/checkout/integrate/

 

In the paypal.Buttons({...})

I have a

 

onApprove: function(data, actions) {
    console.log(data);

 

My plan was to use data.payerID and data.paymentID to validate the payment, but data.paymentID is null.

 

Any ideas?

 

I've tried calling https://api-m.paypal.com/v1/checkout/orders/*id* but I keep getting a "No permission for the requested operation".

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.