Redirect to order received

This commit is contained in:
Narek Zakarian 2024-05-14 15:30:14 +04:00
parent 1d729e3572
commit db3a65ddef
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -20,7 +20,11 @@ const onApprove = (context, errorHandler) => {
errorHandler.genericError(); errorHandler.genericError();
}); });
} }
location.href = context.config.redirect;
let orderReceivedUrl = data.data?.order_received_url
location.href = orderReceivedUrl ? orderReceivedUrl : context.config.redirect;
}); });
} }