#noor_code

1 messages ¡ Page 1 of 1 (latest)

outer quailBOT
#

👋 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.

random stump
#

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

buoyant gazelle
#

@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

random stump
#

paymentIntent: paymentIntent.client_secret,
ephemeralKey: ephemeralKey.secret,
customer: customer.id,

#

?

buoyant gazelle
#

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
#

any one know about this

#

i mean
he learn react native

buoyant gazelle
#

@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

random stump
#

ok

#

thanks

buoyant gazelle
#

I'm happy to help you but I need you to write a clear question first.