add error handler to approve handler for paynow

This commit is contained in:
David Remer 2020-07-16 13:14:35 +03:00
parent ec680a7191
commit bfa148b753

View file

@ -1,4 +1,4 @@
const onApprove = (context) => {
const onApprove = (context, errorHandler) => {
return (data, actions) => {
return fetch(context.config.ajax.approve_order.endpoint, {
method: 'POST',