#blazehawk_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1324632290982232167
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
I'm not sure I understand the question, if you provided a valid test card (that will successfully make payment) and click on the pay button, then the payment is going to be made successfully. Can you share a screen recording of what you're doing on the application? Maybe that'll help me better understand the issue you're facing
ok please wait
can you see the attachment?
when i click the X button
i receive
payment_intent.succeeded
charge.succeeded
Hi @limber pier can you share with me the PaymentIntent ID?
pi_3Qd4ewBtY4iG3hhQ3yr82jDh
Can you also share with me your react-native code?
const {initPaymentSheet, presentPaymentSheet, confirmPaymentSheetPayment} =
useStripe();
console.log(JSON.stringify(data));
const {error, paymentOption} = await initPaymentSheet({
customerId: data.customer,
customerEphemeralKeySecret: data.ephemeralKey,
paymentIntentClientSecret: data.paymentIntent,
customFlow: true,
merchantDisplayName: item.first_name,
});
if (error) {
setLoading(false);
} else {
initializePayment();
}
//.
const initializePayment = async () => {
const {error, paymentOption} = await presentPaymentSheet();
if (error) {
setLoading(false);
} else {
confirmPayment();
}
};
/// OPEN BOTTOM SHEET DIALOG
const confirmPayment = async () => {
const {error} = await confirmPaymentSheetPayment();
if (error) {
setLoading(false);
console.log('ERROR', error.message);
} else {
setLoading(false);
navigation.navigate('BookSuccess', {
title: 'Payment Successfully',
msg: 'Your payment has been successfully completed',
type: 1,
});
}
};
Thanks for the code. The payment confirmation was made by your own code here
if (error) {
setLoading(false);
} else {
confirmPayment();
}