#pawan_code

1 messages ¡ Page 1 of 1 (latest)

mental breachBOT
#

👋 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/1290593273827819564

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

sage tree
#

Hi @limber oar

#

I Have Explained my Concern and Issue it will give you the Context of my issue

limber oar
#

sounds good. What's the current question/where are you stuck?

sage tree
#

I am Not Able to Save the Card

#

I am Using Stripe Payment Element to Show the Credit Card Form for My react Based Application In Which In Chekout i am Having Two Step Confirmation [Review Order Page & Place Order Page]

After Entering the Card Details Navigating to Review Order Page [ OnClick of Review Order Button ]

From Review Order Page After Reviewing the Details Placing the Order on Click of Place Order.

#

As Per Doc it should Automatically do but Its Not Happening in my case

limber oar
#

please share your complete frontend and backend code relating to this.
Also do a fresh, clean new end-to-end test and share the Customer/PaymentIntent IDs.
if it's easier, take an hour or two to get that information ready and open a support ticket at https://support.stripe.com/?contact=true with a detailed email with all that info.

sage tree
#

PMID : pm_1Q50LfHBIoGyEgRJ7QaLCmoJ
PI : pi_3Q50LFHBIoGyEgRJ1ZTzQPBT

mental breachBOT
limber oar
#

and the other information I asked for?

sage tree
limber oar
#

No sorry. Please either share the information here on your specific issue, or open a detailed support ticket so you can talk 1:1 with someone, we can't read all your previous threads every time, I'm sorry.

sage tree
#

Sure Let me Know What all details you Required

finite valley
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

sage tree
#

Hi @finite valley

#

I am Facing Issue While Saving the Card

#

I am Using PaymentElement to show the Payment form

#

In My Case I am Able to See The Checkbox and After Cheking it Card is Not Saving

#

As Per Doc It Will Atomatically Save

#

Just to Update you in **ElementsOption i am Passing ** paymentMethodCreation: 'manual',

finite valley
#

Can you share the Customer Id ?

sage tree
#

cus_QrHeL6XAwuChIb

finite valley
#

Thanks for sharing, I see that it has a PaymentMethod attached pm_1Q4mqGHBIoGyEgRJrwf21Ot8

#

Now what about your customer Session ?

#

Are you passing components.payment_element.features.payment_method_redisplay: true?

sage tree
finite valley
#

Thanks for these additional details.

sage tree
#

pm_1Q50LfHBIoGyEgRJ7QaLCmoJ

finite valley
#

Have you had the chance to review my last question too ? regardingt he Customer Session ?

sage tree
#

If i am not wrong this is used to Show The Saved Card in Payment Form Right

#

But My Concern is after Creating the customer session if we pass the customerSessionClientSecret to Elements It will Show the Checkbox from stripe end to save the Card Which i am Getitng But Card is Not Saving .

finite valley
#

Could you log elementsOptions ?

sage tree
#

As Per Doc it Should Handle Automatically
**allowredisplay **in Payment method & SetupFutureUsage in Payment Intent

#

Just to Update you in my site there is 2 step checkout

#

And In Element option i setted ** paymentMethodCreation: 'manual',** so I am Creating payment Method on click of revieworder btn

finite valley
#

Why you are passing paymentMethodCreation: manual?

sage tree
finite valley
sage tree
#

Which id ?

finite valley
finite valley
sage tree
finite valley
#

May I invite you to share a sample project that reproduces the issue ?

#

It seems you have multiple logics involved and it's hard to tell what is the issue like this without having a clear project honestly.

sage tree
finite valley
finite valley
sage tree
# finite valley This is the customer secret and not the Customer Session

{
"object": "customer_session",
"client_secret": "cuss_secret_QwwVHkMEwgBPhg5Z18CPvL3bdj4ypdOf1WbsN4FARU0Z9vk",
"components": {
"buy_button": {
"enabled": false
},
"payment_element": {
"enabled": true,
"features": {
"payment_method_allow_redisplay_filters": [
"always"
],
"payment_method_redisplay": "enabled",
"payment_method_redisplay_limit": 3,
"payment_method_remove": "enabled",
"payment_method_save": "enabled",
"payment_method_save_usage": "on_session"
}
},
"pricing_table": {
"enabled": false
}
},
"created": 1727775833,
"customer": "cus_QrHeL6XAwuChIb",
"expires_at": 1727777633,
"livemode": false
}

finite valley
#

And using this Customer session you aren't seeing a PaymentMethod in the PaymentElement ?

#

Can you share a screenshot of the result in your webpage ?

sage tree
#

Sure I am Sharing the Video of my Projetc

finite valley
#

No please share a sample project (code) in a way we can reproduce the issue.

#

Feel free to download it, make the updates you need in a way that reproduces the same issue you are facing and then share it with us please.

mental breachBOT
sage tree
#

Its Difficult for me to share Sample Code where you can reproduce the issue

#

Let me first Walk you through my Site

#

In That I will Show What are the Steps i follwed

#

Once We Landed in Checkout Page

  1. Creating Customer Session and passing the customerSessionClientSecret in element Options

  2. Then Creating the paymentIntent

then upon valid catd details input Creating the payment method and After review Order Confirming the payment intent

#

Please Have a look Once

umbral gate
#

Is the concern that you don't see the setup_future_usage on the PaymentIntent in the Dashboard?

sage tree
#

Yes setup_future_usage & Allow redisplay not setted because of that i am not able to save the Payment

#

Can you Please go through above chat @umbral gate so that you will get little context of my issue i explained above

umbral gate
#

On the video you're looking at logs that only contain the snapshot of the PaymentIntent, not the current PaymentIntent state.
Could you please share the PaymentIntent ID pi_xxx?

sage tree
#

PMID :pm_1Q52zdHBIoGyEgRJYswkFtTt
PI : pi_3Q52zSHBIoGyEgRJ0G6bBHp9

umbral gate
#

I am trying to correlate the code in the video and the object that you shared but it's hard because in the video you jump around a lot and switch the screens. Could you please share just the code related to Stripe?

#

Why are you making this call?

sage tree
#

If you observed in the **ElementsOptions ** i am passing paymetmethodCreation as manual

#

That's why i am Creating payment method when user enters valid card card details

#

and in video if you observe in my site there is two step payment so i need to show details of user in review order page and update the basket with payment details if i use paymentMethodCreation as automatic then if i am not wrong then i wouldn't get this flexiblity ?

#

In doc As well Its defined as manual

umbral gate
sage tree
#

Let me know if we specify paymentMethodCreation: 'manual' then do we need to create payment method or not ?

umbral gate
#

All the necessary steps are outlined in the doc.

#

None of the steps require you to make a call to create a PaymentMethod.

sage tree
#

Then How We Will Know Weather the Payment Method is created or not ?

umbral gate
#

It will be attached to the PaymentIntent and Customer object after the payment is completed.

sage tree
#

Yes That's The reason I want to Payment Method Creation detail before payment confirmation that's why i am creating it and **mentioning **in **elementOptions **as manual

finite valley
#

Without a clear/sample project that reproduces the issue you are facing, it's hard to tell what going on here unfortunately.

umbral gate
sage tree
#

Can you explain the Steps

#

What Needs to be done

finite valley