execute-payment

knutsford
Contributor
Contributor

onAuthorize: function (data, actions) {
              return actions.payment.execute().then(function() {
                      return actions.request.post('/api/execute-payment/', {
                             paymentID: data.paymentID,
                             payerID: data.payerID
                     })
                    document.order.submit();
                    window.location.replace("/Success/");
          });

},

 

 

 

 

Is that correct to get the Payer Id and Payment Id

 

Or should it be

 

return actions.request.post('/my-api/execute-payment/', {   

 

or something else?

 

 

 

I have seen both api and my-api

 

 

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.