#Naitik

1 messages · Page 1 of 1 (latest)

spare stormBOT
tepid ferry
#

That;s because you're not using a Setup Intent with setup_future_usage to create the Payment Method object

timber tendon
#

dont have any setup intenent method

tepid ferry
timber tendon
#

this one?

tepid ferry
#

Yes

timber tendon
#

'automatic_payment_methods' does not exist

tepid ferry
#

Your stripe-node is likely out-of-date

#

TS interfaces need updating

timber tendon
#

what should I do?

#

I am using "stripe": "^11.11.0",

tepid ferry
#

You need 11.16.0

#

It's just a TypeScript warning anyway, your code will still work

timber tendon
#

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?

sly lichen
#

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?

timber tendon
#

sure

#

seti_1NdXSsJtoZ1wx8N7wSoSIXe4

sly lichen
#

I don't see that you attempted to confirm this SetupIntent.

#

What are you trying to do?

timber tendon
#

card is added properly in stripe
but Set up for future use not seeing in stripe account

sly lichen
#

That's a different SetupIntent to what you sent me.

timber tendon
#

what should I do?

#

I told you multiple times

#

you are not guide me properly

#

guide me step by step

sly lichen
#

Let's start over. Are you trying to set up a Payment Method on a Customer object?

timber tendon
#

Yes

#

I want to add cards only for future use using card element

#

where user can manually enter card details

sly lichen
#

Card Element is an outdated component, I recommend you use the Payment Element instead.

#

The guide above uses the Payment Element

timber tendon
#

ok

spare stormBOT