#noor_code
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/1243244879706980505
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Cart:
useEffect(() => {
const initializePaymentSheet = async () => {
try {
const paymentIntent = await fetchPaymentSheetParams();
const { error } = await stripe.initPaymentSheet({
customerId: paymentIntent.customer,
customerEphemeralKeySecret: paymentIntent.ephemeralKey,
paymentIntentClientSecret: paymentIntent.paymentIntent,
merchantDisplayName: 'BALAUM SHOP',
});
if (!error) {
console.log('Initiated payment sheet successfully');
setPaymentSheetReady(true);
} else {
console.error('Error in payment sheet init:', error);
}
} catch (error) {
console.error('Error initializing payment sheet:', error);
}
};
initializePaymentSheet();
}, [total]);
@random stump I'm sorry I don't really understand the question. You are the one creating the customer with your own server-side code
paymentIntent: paymentIntent.client_secret,
ephemeralKey: ephemeralKey.secret,
customer: customer.id,
i just need delete customer: customer.id,
?
Try it and see I would say. You will need to remove ephemeralKey too in that case.
I'm sorry you didn't really ask a clear question so it's tough to say
@random stump please pause. Think about the issue and write a clear question about what you are trying to do and what is blocking you. You are really giving almost no information
I'm happy to help you but I need you to write a clear question first.