#evan_09475

1 messages · Page 1 of 1 (latest)

jovial waveBOT
outer echo
#

Hello 👋
Are you sure you disabled it in test mode?
I believe the settings are separate for live-test mode under payment method settings

warped vault
#

I have subscription integration

outer echo
#

Umm let's take a step back, can you explain your flow and how you're using the APIs?

warped vault
#

I have a form where am editing the payment element to edit the future payment element for the subscription.

my API is first creating setup intent then am getting the client_secret back to the client

#

then am dispalaying the payment element

#

After that am confirming the intent on the client

#

the functioanlity works fine, but am getting payment methods I haven't set in the dashbaord

#

When I set this

    const setupIntent = await this.stripeGateway.setupIntents.create({
      customer: stripeCustomerObj.stripeCustomerId,
      payment_method_types: ['card', 'paypal']
    })
#

it only shows these payment methods.

#

I want it to be dynamic from which I have enabled in the dashbaord

outer echo
#

When you create the SetupIntent with automatic payment methods, the payment methods are retrieved from your account settings. Can you share an example request ID so that I can take a deeper look?

Aside from that, why exactly are you creating SetupIntent separately? With subscription flow, you can

1/ Create a subscription
2/ Look at the latest_invoice and find the PaymentIntent
3/ Use that PaymentIntent to render Payment Element and collect payment method information

OR if you have a trial then the subscription would generate a SetupIntent on the subscription under pending_setup_intent param

So you don't need to create a separate SetupIntent by calling the API

warped vault
#

I am creating a setupIntent for another secnario.

Lets say if a user subscribed with normal visa card.

I have a section in my app where the user can change their wallet info or if they pay the next subscription with another card detrails

#

this is setupIntentId seti_1NpXcVD9sYh65PYtD0WSX7Oj

outer echo
warped vault
#

I see thank you a lot