#Naitik
1 messages · Page 1 of 1 (latest)
That;s because you're not using a Setup Intent with setup_future_usage to create the Payment Method object
dont have any setup intenent method
That's because it's a server-side API. Follow: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements
this one?
Yes
'automatic_payment_methods' does not exist
You need 11.16.0
It's just a TypeScript warning anyway, your code will still work
ok
const setupIntent: any = await stripeClient.setupIntents.create({
customer: customerId,
usage: "on_session",
automatic_payment_methods: {
enabled: true,
},
});
error gone but still not future usage here
Are you there?
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Could you please share the SetupIntent ID seti_xxx?
I don't see that you attempted to confirm this SetupIntent.
What are you trying to do?
card is added properly in stripe
but Set up for future use not seeing in stripe account
That's a different SetupIntent to what you sent me.
what should I do?
I told you multiple times
you are not guide me properly
guide me step by step
You told me what exactly?
Let's start over. Are you trying to set up a Payment Method on a Customer object?
Yes
I want to add cards only for future use using card element
where user can manually enter card details
I understand. Please follow this guide step by step: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements
Card Element is an outdated component, I recommend you use the Payment Element instead.
The guide above uses the Payment Element
ok