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(() => {
|
||||
onSuccess(confirmation);
|
||||
});
|
||||
})
|
||||
}).catch(e => onError(e))
|
||||
} else {
|
||||
const error = `${transaction?.errorMessage}. ${transaction?.detailedErrorMessage || ''}`;
|
||||
onError(error || event.clientAnswer.orderStatus);
|
||||
|
Loading…
x
Reference in New Issue
Block a user