I am using PayPal checkout for my angular 4 project.I want to make an API call after PayPal payment gets success, but actions.payment.execute().then
not allowed to access any outside object.
Can I get any event for successful ??
onAuthorize: function (data, actions) {
return actions.payment.execute().then(function () {
//want to make an api call
});
}
}, '#paypal-button-container');