#pawan_code
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/1295986925773127700
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- pawan_docs, 22 hours ago, 9 messages
Sorry can you elaborate a lot more details on the question? What's your code, what have you attemped?
I have an e-commerce site built with React,
and in the "My Account" section under the user's profile, I want to display the Stripe Payment Element form. The goal is to collect the user's card details and save them to their Stripe account for future use.
Note: I do not want the user to save their card information during checkout.
For That i am Using Setup-intent and Confirming it
Hi @hard aurora Are you available ?
The card is Getting Saved but allow_redisplay is Unspecified
And I also don't want to customer to redirect
Are you using the PaymentElements?
I see, and the SetupIntent is confirmed correctly?
Can you share the SetupIntent Id? seti_xxx
hmm which checkbox?
Some thing Like This My Ui looks Like
PM id Which Attached : pm_1QARKqHBIoGyEgRJ5Qvi9I0S
SetupIntent Id : seti_1QARJjHBIoGyEgRJ2RqdgRCA
I Have Provided the PMid & Setupintentid Please Have a look
I can see that PM is attached to the customer correctly
To control those, you should generate the Customer Session as this step: https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements&lang=ruby#save-payment-methods
2 more thing
- I don't want to redirect anyWhere after confirm Setupintent
- As you can see in the Ui Its Showing amazon pay as well i want to hide via code how can i
- If you don’t want to redirect for card payments, you can set redirect to if_required. This only redirects customers that check out with redirect-based payment methods.
- When creating SetupIntent, passing
payment_method_types=['card']
for 1st where i have to pass ?
When confirming the SetupIntent: https://docs.stripe.com/js/setup_intents/confirm_setup#confirm_setup_intent-options-redirect
is it correct ?
Yes
Um I remember there is an option on frontend. One moment...
Ah okie that's from a different flow.
Let's disregard and remove the payment_method_types = ['card'] from SetupIntent creation
But then in your Dashboard, turn off Amazon Pay https://dashboard.stripe.com/test/settings/payment_methods
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.