#Naitik

1 messages · Page 1 of 1 (latest)

green yarrowBOT
bleak moat
#

Can you share the Payment Intent ID (pi_xxx) or Payment Method ID (pm_xxx) from both screenshots?

torn verge
#

Yes sure

#

1st:
payment Method Id : pm_1NdnKiJtoZ1wx8N719ucpQrE

payment Intenent Id: pi_3NdnKjJtoZ1wx8N70J64BqHe

2nd:
payment Method Id : pm_1NdpPWJtoZ1wx8N7nxEvGk6r

payment Intenent Id: pi_3NdpPYJtoZ1wx8N71ZsvUSVn

bleak moat
torn verge
#

But billing address are optional

bleak moat
#

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

torn verge
#

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

jovial parrot
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

torn verge
#

ok

jovial parrot
#

Could you please summarise for me what you're trying to do?

torn verge
#

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

jovial parrot
#

What is pre-filled exactly? Could you please share a screenshot from Checkout?

torn verge
#

I have diffrent question

can we use payment method API without amount or 0$ amount?

jovial parrot
#

What are you trying to achieve?

torn verge
#

its diffrent question

jovial parrot
#

I understand. Payment Method API doesn't require an amount, that's why I am asking what's your goal.

torn verge
#

sorry I am trying to say paymentIntent

jovial parrot
#

Okay. Still, what are you trying to do? Do you want to collect the payment method details for later use?

torn verge
#

Yes

jovial parrot
torn verge
#

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

jovial parrot
#

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

torn verge
#

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

jovial parrot
#

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.

torn verge
#

Its client requirments

#

I can not change it

jovial parrot
#

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.

torn verge
#

Yes you are right

jovial parrot
torn verge
#

okay thanks

jovial parrot
#

Happy to help!

torn verge
#

Thanks