#thirddiamond_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1326479734053539911
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
Could you please share a screenshot of where you see it?
It shouldn't be the case when you explicitly provide payment_method_types
It doesn't seem like this is the payment that you shared in the request log.
How are you rendering this Payment Element exactly?
<Elements options={option} stripe={stripePromise}>
<CheckoutForm plandetails={plandetails} />
</Elements>
const appearance = {
theme: "stripe",
};
paasing appearance and client secretn in option
Could you please share more code, with backend too.
Yes, I am still looking...
Do you have a live website where I could reproduce this issue?
https://htptv-fe.vercel.app/ here is website
it's seems like i am creating subscription when user pays amount. hence not creating any payment intent before payment form render
You then need to provide the same list to payment_settings.payment_method_types: https://docs.stripe.com/api/subscriptions/create#create_subscription-payment_settings-payment_method_types
I don't see where you're creating the Subscription in the code you shared...
this is the code for create sub
frontend
how can i hide bank payment option from frontend
Please see my message above โ๏ธ
but those option i need to give during cretion of subsctiptn i am creating subscription after payment form render
Is there a reason why you perform the steps in different order for one-off and for recurring payments?
Then, you can set payment_method_types on the Payment Element as well: https://docs.stripe.com/js/elements_object/create_without_intent#stripe_elements_no_intent-options-paymentMethodTypes
Yes sometime user don't complate full payment that's why i created separted to avoin unnessry sub creation
when i am using link pay it's turning on bank payment as well
i dont want bank payment
I understand. I don't think you have granular control over how Link works. So if you don't want to get bank payments via Link you will probably need to disable Link completely