J'utilise la caisse PayPal pour mon projet angulaire 4. Je veux faire un appel API après le paiement PayPal obtient le succès, mais actions.payment.execute().then
pas autorisé à accéder à un objet extérieur. Puis-je avoir un événement pour réussir?Paypal Checkout: faire un appel API après un paiement réussi
onAuthorize: function (data, actions) {
return actions.payment.execute().then(function() {
//want to make an api call
});
}
}, '#paypal-button-container');