1
0
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:
Sylvain 2021-05-28 10:20:37 +02:00
parent a38fe0b43c
commit bf3dcd874b

View File

@ -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);