#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/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.
- pawan_code, 11 minutes ago, 44 messages
- pawan_code, 17 hours ago, 50 messages
- pawan_code, 4 days ago, 14 messages
- pawan_code, 4 days ago, 16 messages
- pawan_docs, 6 days ago, 110 messages
Hi @limber oar
For your Reference Can you Plesase Have a look i this Thread
https://discord.com/channels/841573134531821608/1290555213916147713
I Have Explained my Concern and Issue it will give you the Context of my issue
sounds good. What's the current question/where are you stuck?
I am Not Able to Save the Card
https://docs.stripe.com/payments/build-a-two-step-confirmation#save-payment-methods
Here is The Doc Which i am following 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
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.
PMID : pm_1Q50LfHBIoGyEgRJ7QaLCmoJ
PI : pi_3Q50LFHBIoGyEgRJ1ZTzQPBT
and the other information I asked for?
Can you Please Refer this Thread here I Added All Details With Code Snippet
https://discordapp.com/channels/841573134531821608/1288093408593969152
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.
Sure Let me Know What all details you Required
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
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',
Can you share the Customer Id ?
cus_QrHeL6XAwuChIb
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?
**pm_1Q4mqGHBIoGyEgRJrwf21Ot8 **this payment method is Attached beacuse I Updated **allowRedisplay **via updatePaymentMethod Api Call
Thanks for these additional details.
pm_1Q50LfHBIoGyEgRJ7QaLCmoJ
Have you had the chance to review my last question too ? regardingt he Customer Session ?
Yes
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 .
Could you log elementsOptions ?
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
Why you are passing paymentMethodCreation: manual?
because i need to show the payment details to customer in review order page and i am having some basket updation with payment instruments that's why
Which id ?
I'm not sure I understand the link between these two things.
Customer Session
"cuss_secret_QwwM6RcUOedZkHU8wDLrjleBGrVunXW2GWanWMdxZPkvwsT"
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.
Didn't got can you Explain ?
This is the customer secret and not the Customer Session
I invite you to share a minimal/sample project with us that contains and reproduces just the issue you are facing with the PM redisplay
{
"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
}
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 ?
Sure I am Sharing the Video of my Projetc
No please share a sample project (code) in a way we can reproduce the issue.
You can this as a base project:
https://docs.stripe.com/payments/quickstart
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.
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
-
Creating Customer Session and passing the customerSessionClientSecret in element Options
-
Then Creating the paymentIntent
then upon valid catd details input Creating the payment method and After review Order Confirming the payment intent
Here is the Video Capture of mu site where i am showing you code and Storefront
https://pawan-etg.tinytake.com/msc/MTAxNTcyMjBfMjM4MzQ0MzU
Please Have a look Once
Is the concern that you don't see the setup_future_usage on the PaymentIntent in the Dashboard?
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
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?
PMID :pm_1Q52zdHBIoGyEgRJYswkFtTt
PI : pi_3Q52zSHBIoGyEgRJ0G6bBHp9
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?
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
I can't catch every detail of a 5 minute video, unfortunately. That's why I am asking for the code.
But the two-step confirmation requires you to create a Confirmation token, and not a Payment Method: https://docs.stripe.com/payments/build-a-two-step-confirmation#create-ct
Let me know if we specify paymentMethodCreation: 'manual' then do we need to create payment method or not ?
All the necessary steps are outlined in the doc.
None of the steps require you to make a call to create a PaymentMethod.
Then How We Will Know Weather the Payment Method is created or not ?
It will be attached to the PaymentIntent and Customer object after the payment is completed.
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
Without a clear/sample project that reproduces the issue you are facing, it's hard to tell what going on here unfortunately.
You can achieve this with the Confirmation token. It will give you the card details before you confirm the PaymentIntent.
I invite you to follow this guide then:
https://docs.stripe.com/payments/build-a-two-step-confirmation#create-ct