#cyoo
1 messages · Page 1 of 1 (latest)
Hello! Have you tried using Klarna's test values after getting to the Klarna page?
I think there's some information here about it: https://docs.klarna.com/resources/test-environment/test-scenarios/
Yes, I have and it's consistent with the denied test data as described here (https://docs.klarna.com/resources/test-environment/sample-customer-data/#united-states-of-america) but the PaymentIntent still is succeeded :/
Sharing payment intent id for visibility: pi_3LsvDXHbldy8uya80U8UX9Oy
I did enter 3106354386 as the phone number in the 2-factor authentication but for some reason that phone number is not reflected in the screenshot
When this happens what do you see inside the result.error?
And what status is the Payment Intent in at that point?
Meaning when you use the Stripe test data I mean.
It's not succeeded right?
This is what I see when I use the Stripe declined test data:
:
"parameter_unknown"
doc_url
:
"https://stripe.com/docs/error-codes/parameter-unknown"
message
:
"Received unknown parameter: payment_method_data[billing_details][address][phone]"
param
:
"payment_method_data[billing_details][address][phone]"
payment_intent
:
amount
:
41000
amount_details
:
{tip: {…}}
automatic_payment_methods
:
null
canceled_at
:
null
cancellation_reason
:
null
capture_method
:
"automatic"
client_secret
:
"pi_3LsveOHbldy8uya813iC7YZg_secret_cGoUNFEpE41n3R6OJwicQneXo"
confirmation_method
:
"automatic"
created
:
1665783760
currency
:
"usd"
description
:
null
id
:
"pi_3LsveOHbldy8uya813iC7YZg"
last_payment_error
:
null
livemode
:
false
next_action
:
null
object
:
"payment_intent"
payment_method
:
null
payment_method_options
:
{us_bank_account: {…}}
payment_method_types
:
(5) ['card', 'klarna', 'us_bank_account', 'afterpay_clearpay', 'affirm']
processing
:
null
receipt_email
:
null
setup_future_usage
:
null
shipping
:
{address: {…}, carrier: null, name: 'Kevin House', phone: null, tracking_number: null}
source
:
null
status
:
"requires_payment_method"
[[Prototype]]
:
Object
request_log_url
:
"https://dashboard.stripe.com/test/logs/req_C42gwLrwke6JaC?t=1665783806"
type
:
"invalid_request_error"```
The payment intent has a status of "invalid_request_error"
Oh, interesting, let me have a look...
Are you passing billing_details in when you're calling stripe.confirmKlarnaPayment? If so, I think the issue is that you have phone in the wrong place. You have it inside address, but it belongs alongside it instead.
oh, I see. This is how I had it
But now I have it like this
Hm the payment intent status is still "succeeded"
Can you try again with the Stripe test data?
I tried again with the Stripe test data as defined here but I still got a Payment Intent of Succeeded
Hm... hang on...
Yeah, something seems off here. One thing I want to clarify: when you use that info you are redirected to Klarna, and you go through the process there and at no point does it say that anything is declined or denied, and then you come back to your page and the payment has succeded, correct?
I can reproduce the problem on our end. I'll flag internally that there's something amiss with Klarna testing.
Flagged. I don't have a workaround for you at the moment, unfortunately.