#jimmyhowedotcom
1 messages · Page 1 of 1 (latest)
You can use the payment_method_data field on the Payment Intent object, which will prefill whatever information you pass to it. Here's an example implementation: https://stripe.com/docs/payments/klarna/accept-a-payment?platform=web&ui=API#kpp-prefill-billing-details-form
Received unknown parameter: payment_method_data. Did you mean payment_method_types?
Do you have a request ID for the request that gave that error message?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_OozwmasSEiA1h6
Is it maybe this : https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_method_options-klarna
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ahhhh, okay. So you're passing this to a Checkout Session create API call, rather than the Payment Intent create call. I don't think it's possible to prefill the Klarna data when using Checkout
Agreed, those billing details would be provided by the customer during checkout
If its a returning customer is there a way to do it? This will be for an app used by reception and customers who walk in, but their stripe details are stored locally using Laravel Cashier
You can provide an existing customer if you have that to tie the payment to them, but only the most recent card payment details will be prefilled (if available)
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.