#hollystyles
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- hollystyles, 20 hours ago, 4 messages
Can you share a sample payment intent where this happened?
You provided that test data in Klarna when redirected?
No supplied as billingDetails on stripe.confirmPayment
We don't pass DOB as is not mandatory for our checkout form
const paymentElementOptions: StripePaymentElementOptions = { layout: "accordion", fields: { billingDetails: { name: "never", email: "never", phone: "never", address: "never" } } };
And then on submit:
//Attempt payment with the provider const { error } = await stripe.confirmPayment({ elements, confirmParams: { // Make sure to change this to your payment completion page return_url: config.redirectUri, payment_method_data: { billing_details: { name: detailsRequest.firstName + " " + detailsRequest.lastName, email: detailsRequest.email, phone: detailsRequest.phoneNumber, address: { line1: detailsRequest.addressLine1, line2: detailsRequest.addressLine2, city: detailsRequest.townCity, state: "", postal_code: detailsRequest.postalCode, country: detailsRequest.country } } } } });
Well dob isn't a field in stripe
That's why I was under the impression you needed to provide that in Klarna itself
I haven't tested this flow myself though
If you don't pass any billing details to confirm, what does the klarna checkout flow look like?
I'll try it
One thing I know it will do is: display email and name inputs which I don't want as customer already filled those in....
But not before payment element initted so can't pass as default values.
That's fine. I just want you to try filling all details in Klarna
To see if that allows you to test the failure flow
Hm ok let me check with a colleague
Thanks
The test failure details are still working for me in Klarna.
Can you show me what happens after you put in the failure phone number upfront? For me it populates the rest of the fail customer details
Ah, it looks like our docs have a slightly outdated phone number for the UK customer. The new one is +447355505530
https://docs.klarna.com/resources/test-environment/sample-customer-data/#united-kingdom