ng4-paypal-button
ng4-paypal-button copied to clipboard
No processing?
The code at https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/client-side-REST-integration/ has
onAuthorize: function(data, actions) { return actions.payment.execute().then(function(payment) { // The payment is complete! // You can now show a confirmation message to the customer }); }
while the code in app.component.ts only has
onAuthorize: (data, actions) => { // show success page }
I know not much about paypal, but it seems nothing is done in terms of processing payments without the return actions.payment.execute().then(function(payment)
that does not exist in app.component.ts?
Hi, sorry for the late reply.
It looks like this feature was added recently. I have updated the project to include the return actions.payment.execute().then(() => {});
line.