#YTB-Setup-Intent

1 messages · Page 1 of 1 (latest)

thick axle
#

Hi there! Just to clarify, you are using a SetupIntent because you want to take future payments and not create a payment immediately? If you are creating a payment immediately then you shouldn't use SetupIntents -- you can use setup_future_usage with a PaymentIntent to save the card for future use as well.

pure lake
#

I would like to create payment later on. The payment I'm trying to make now is just for testing purpose

thick axle
#

Great, thanks.

#

And you are using the card Element?

pure lake
#

Yes

thick axle
#

When you passing clientSecret above, it is an object like clientSecret: 'CLIENT_SECRET'?

#

Have you logged that variable out?

pure lake
#

yes to both questions 🙂

thick axle
#

And what does the log return?

pure lake
#

I got the setup intent

#

This is the error I got while trying to create a payment: {"error":"Customer didn't authorize the auto-renewable subscription"}

thick axle
#

Can you provide the request_Id for that error?

pure lake
#

But I can see the created payment method I console.logged

#

sure, one sec

thick axle
#

Okay so the SetupIntent is working fine then.

pure lake
#

Is it the request_id you want: req_RYJDrqDR6GSo0f ?

thick axle
#

That looks like a GET request to retrieve the SetupIntent which was successful.

#

However, I can look at your account based on that and I'm not seeing any failed requests.

#

The error you mentioned is also not a Stripe generated error message.

#

So this error is coming from somewhere in your code I believe.

pure lake
#

You're right. Sorry for that. I saw we're throwing this error because the setup intent status is still required_payment_method

#

Wasn;t the payment method attached from my client?

#

Trhough Element?

thick axle
pure lake
#

Is this from my client?

#

After the payment method creation?

thick axle