#Mahesh K
1 messages · Page 1 of 1 (latest)
Hi, how can I help?
i am using invoicing payment for payments but in the invoicing payment checkout session i am getting card details prefilled with the test data
Hi, can you share the checkout session id with me? Or the request id where you're seeing this? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
in_1MrSzJJFyf0NJAEURPOWiIde
this is the invoice id
the above is the url
did you got my issue??
are you there@unreal remnant??
Taking a look
atleast give me a reply , so that i can wait.
I'm sorry, I was juggling a couple of threads while looking at this. I'll share my findings here shortly.
ok ,thank you !😊
I'm asking a colleague here
ok
I was able to confirm that this is buggy in test mode. I'll share this with the team. Thank you for flagging here
I won't but you can write in to support and get updates that way.
Sure
how can i save the card details entered by my customer on the invoicing payment checkout session.
i am able to save tha card details using the normal payment checkouts session. by including the following key while creating the payment link using the checkout session api
payment_intent_data: {
setup_future_usage: 'off_session'
}
did you understand my issue?
Hmmm, can you share the request id here with me?
ok, Thank you!
Once you share the request id, I'd be able to further assist here.
You're correct, typically to save the payment details for future use you'd set setup_future_usage.
yes
and the question is?
can i use it for, while creating the payment invoicing??
Here is where I'm confuse, you mention 'creating the payment invoicing' which I have no idea what this means.
Can you share a request id how you're creating this payment. Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
i mean creating invoice
and then finalizing that invoice to get the hosted checkout page
url
Ah, no that is not possible no.
means we can't save the card details.
That is correct
can i prefill the card details, if the customer has saved the card details before the invoice is generated?
Yes, you can set the default payment method on the customer, https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method before you create the invoice and charge customer that way
You'd use collection method: https://stripe.com/docs/api/invoices/create#create_invoice-collection_method charge_automatically in this case.
is there any stripe hosted pages to collect the card details of the customer to save that card details to that particular customer