#evan_09475
1 messages · Page 1 of 1 (latest)
Hello 👋
Are you sure you disabled it in test mode?
I believe the settings are separate for live-test mode under payment method settings
I have subscription integration
Umm let's take a step back, can you explain your flow and how you're using the APIs?
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
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
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
You have the payment method enabled under
https://dashboard.stripe.com/test/settings/payment_methods?platform_id=pmc_1LiDHoD9sYh65PYtVWaOAij3
I see thank you a lot