#pawan_code

1 messages ¡ Page 1 of 1 (latest)

austere cypressBOT
#

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

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

teal willow
#

Can you share an example of a PaymentIntent ?

heavy sail
teal willow
#

Sorry I mean a PaymentIntent Id, or a requestId

heavy sail
#

payment Intent :"pi_3QBDiIHBIoGyEgRJ07HuygEW"

teal willow
#

In Payment Element Without Checking the checkbox to save payment for future Purchases its Attaching Payment to Customer
I don't see any generated PaymentMethod

#

Can you share a example id where a payment method was attached to the customer despite not checking the check box you were talking about ?

#

Also if possible to share more details about your UI integration ?

heavy sail
#

Yes Sute

#

Sure

austere cypressBOT
heavy sail
#

I am having E-commerce Site Based In React & in Which i am having 2-Step Checkout

So I am Using Payment Element to Show the Credit Card form

Below Are the Steps I am Following

  1. creating Customer Session & Passing to elements options
    2.creating payment intent
    3.After entering card details on click of Next review order Btn Creating Confirmation token
  2. On click of Place order confirming intent with client seceret.

PMId : pm_1QBDtXHBIoGyEgRJPs3x8BS2
PiId : pi_3QBDsqHBIoGyEgRJ0jqRizU3
CtId : ctoken_1QBDtYHBIoGyEgRJYHgiAGwz

chrome dome
#

It's because you're setting setup_future_usage on the intent, which will default to saving regardless of whether the customer checks that box: https://dashboard.stripe.com/test/logs/req_Z4XQljJeN8UQbN

You should omit that and instead just rely on the checkbox if enabled via the Customer Session: https://docs.stripe.com/api/customer_sessions/create#create_customer_session-components-payment_element-features-payment_method_save

heavy sail
#

Thanks @chrome dome

#

And One More thing ynnoj

#

is there any option to detect weather checkbox is checked or Not after we submit the form details via Elemets or any responce etc

chrome dome
#

I don't believe so, let me check

#

To confirm, you want to see the value of the 'Save payment details for future purchases' checkbox?

#

AFAIK, no you can't find out that value pre payment. However if it is checked then s_f_u is updated on the intent to reflect that:

When confirming the PaymentIntent, Stripe.js automatically controls setting setup_future_usage on the PaymentIntent and allow_redisplay on the PaymentMethod, depending on whether the customer checked the box to save their payment details.

Securely accept payments online.