Oh, I think I just need to do this, right? onApprove: async (data, actions) => {
// Capture the payment completion
return actions.order.capture().then(function(details) {
if(details.status === "COMPLETED") {
that.updateFeedbackTransaction(undefined, data.orderID);
that.page = 3;
}
else {
alert("There was a problem with your payment. Please try again.");
}
});
} That's weird because it was working a couple of weeks ago without this, but I guess something else has been changed somewhere in the meantime.
... View more