Commit 770d0405 by G

minor changes

parent d8bd4dbb
...@@ -61,8 +61,13 @@ const PaymentAmountInputScreen: PaymentStackScreenComponentProps<"paymentAmountI ...@@ -61,8 +61,13 @@ const PaymentAmountInputScreen: PaymentStackScreenComponentProps<"paymentAmountI
log.info("Ouverture du navigateur sur la page de paiement..."); log.info("Ouverture du navigateur sur la page de paiement...");
await handlePaymentUsingBrowser(payment_url); await handlePaymentUsingBrowser(payment_url);
log.info("Verifying transaction status..."); log.info("Verifying transaction status...");
const response = await transactionsStatusMutation.mutateAsync(order_id); const { status } = await transactionsStatusMutation.mutateAsync(order_id);
log.info("result of transactions", JSON.stringify(response, null, 2)); log.info("result of transactions", JSON.stringify(status, null, 2));
if (status === "SUCCESS") {
log.info("Transaction was a success, navigating to success page");
} else if (status === "FAILED") {
log.warn("Transaction was a failed, navigating to error page");
}
} catch (error) { } catch (error) {
log.error("handlePaymentButton |", error); log.error("handlePaymentButton |", error);
//TODO : handle error //TODO : handle error
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment