cancel
Showing results for 
Search instead for 
Did you mean: 

Validating Checkout payments

blinksbjerg
New Community Member

Validating Checkout payments

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".