ng4-paypal-button icon indicating copy to clipboard operation
ng4-paypal-button copied to clipboard

No processing?

Open semla opened this issue 7 years ago • 1 comments

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?

semla avatar Dec 22 '17 09:12 semla

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.

KevinShiCA avatar Jan 08 '18 02:01 KevinShiCA