#Naitik
1 messages · Page 1 of 1 (latest)
Can you share the Payment Intent ID (pi_xxx) or Payment Method ID (pm_xxx) from both screenshots?
Yes sure
1st:
payment Method Id : pm_1NdnKiJtoZ1wx8N719ucpQrE
payment Intenent Id: pi_3NdnKjJtoZ1wx8N70J64BqHe
2nd:
payment Method Id : pm_1NdpPWJtoZ1wx8N7nxEvGk6r
payment Intenent Id: pi_3NdpPYJtoZ1wx8N71ZsvUSVn
With Payment Method API https://dashboard.stripe.com/test/logs/req_mdhE8mY4MvpVqW, billing address and email aren't collected.
You integration should collect and set in the billing_details.address: https://stripe.com/docs/api/payment_methods/create#create_payment_method-billing_details-address
Yes, billing_details.address and billing_details.email are optional. If you would like to have billing address and email included in the payment method object, they should be set in the Payment Method API.
card prefill proper work in 1st customer ID but not working on 2nd customer ID
What do you expect to see? From these two screenshots, I can only see the differences between billing address and email, thus proposing to set them in the Payment Method API
on 1st screenshort I have added card via checkout session and I haven't added any billing address there
I have not added the billing details in the both screenshot
email added only first screenshort
I have created new using payment method API. with billing email
still prefill its not work
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
ok
Could you please summarise for me what you're trying to do?
When I pay by adding card details through check out session card details show as shown in screenshot when i pay again with same customer id card prefill shows.
But when i pay through payment method api the payment is successful as you can see in the 2nd screenshot the details are also visible but the question died when i go to the checkout session the data prefill is not showing witn 2nd customerID
What is pre-filled exactly? Could you please share a screenshot from Checkout?
I have diffrent question
can we use payment method API without amount or 0$ amount?
What are you trying to achieve?
its diffrent question
I understand. Payment Method API doesn't require an amount, that's why I am asking what's your goal.
sorry I am trying to say paymentIntent
Okay. Still, what are you trying to do? Do you want to collect the payment method details for later use?
Yes
You can use SetupIntents for this: https://stripe.com/docs/payments/save-and-reuse
I want to add simply card details using payment methods
but when click on session checkouyt button stripe url will be loaded through prefill cards
Payment Methods API is the wrong way of doing this. Please follow the guide, it explains how to save and reuse Payment Methods the correct way in Stripe.
Also, when using the saved PM later, you don't need to create a Checkout Session, you can charge the saved PM without customer's involvment (e.g. they can just press a button on your site).
My website flow is
when user select the card payment options
he have to add first card info and his card info will be added through payment Method
then click on finalize and sign contract button he will go ahed next page after 2-3 page passing he will click on submit he will redirect to the "stripe checkout session " page there I want to pre populate his card details
I understand.
You don't need Stripe Checkout for this. You can ask your users to select a saved Payment Method from your "Payment Method on File" box, and when they click Finalize and Sign Contract you can charge it directly. There's no need to redirect to Checkout.
But you know the actual technical details, shouldn't this influence the requirements?
I any case, you can't pre-fill card details on Stripe Checkout, unfortunately.
Yes you are right
So, please go through this guide: https://stripe.com/docs/payments/save-and-reuse
It's exactly what you need for your use case. And please let me know if you run into any issues.
okay thanks
Happy to help!
Thanks