mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
display payment confirmation error messages in frontend
This commit is contained in:
parent
a38fe0b43c
commit
bf3dcd874b
@ -67,7 +67,7 @@ export const PayzenForm: React.FC<GatewayFormProps> = ({ onSubmit, onSuccess, on
|
|||||||
PayZenKR.current.removeForms().then(() => {
|
PayZenKR.current.removeForms().then(() => {
|
||||||
onSuccess(confirmation);
|
onSuccess(confirmation);
|
||||||
});
|
});
|
||||||
})
|
}).catch(e => onError(e))
|
||||||
} else {
|
} else {
|
||||||
const error = `${transaction?.errorMessage}. ${transaction?.detailedErrorMessage || ''}`;
|
const error = `${transaction?.errorMessage}. ${transaction?.detailedErrorMessage || ''}`;
|
||||||
onError(error || event.clientAnswer.orderStatus);
|
onError(error || event.clientAnswer.orderStatus);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user