#pawan_code

1 messages · Page 1 of 1 (latest)

prime shellBOT
#

👋 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.

hard aurora
#

Sorry can you elaborate a lot more details on the question? What's your code, what have you attemped?

glass estuary
#

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

glass estuary
#

Hi @hard aurora Are you available ?

hard aurora
#

Hi, here

#

Okie that sounds normal. What have you tried?

glass estuary
#

The card is Getting Saved but allow_redisplay is Unspecified

#

And I also don't want to customer to redirect

hard aurora
#

Are you using the PaymentElements?

glass estuary
#

I Have Created the Setup intent and confirming it

#

Yes

hard aurora
#

I see, and the SetupIntent is confirmed correctly?

#

Can you share the SetupIntent Id? seti_xxx

glass estuary
#

Give me 2 mins

#

Do we need to Show the checkbox in payment form ?

hard aurora
#

hmm which checkbox?

glass estuary
#

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

hard aurora
#

I can see that PM is attached to the customer correctly

glass estuary
#

But Allow redisplay is Unspecified

#

right

#

It Should be always

hard aurora
glass estuary
#

2 more thing

  1. I don't want to redirect anyWhere after confirm Setupintent
  2. As you can see in the Ui Its Showing amazon pay as well i want to hide via code how can i
hard aurora
#
  1. 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.
  2. When creating SetupIntent, passing payment_method_types = ['card']
glass estuary
glass estuary
#

is it correct ?

hard aurora
#

Yes

glass estuary
#

Getting this Error

hard aurora
#

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