diff --git a/app/frontend/src/javascript/components/payment/payzen/payzen-form.tsx b/app/frontend/src/javascript/components/payment/payzen/payzen-form.tsx index b9b5adab8..a93c183e0 100644 --- a/app/frontend/src/javascript/components/payment/payzen/payzen-form.tsx +++ b/app/frontend/src/javascript/components/payment/payzen/payzen-form.tsx @@ -67,7 +67,7 @@ export const PayzenForm: React.FC = ({ onSubmit, onSuccess, on PayZenKR.current.removeForms().then(() => { onSuccess(confirmation); }); - }) + }).catch(e => onError(e)) } else { const error = `${transaction?.errorMessage}. ${transaction?.detailedErrorMessage || ''}`; onError(error || event.clientAnswer.orderStatus);