Open eamonn-convious opened 6 months ago
@eamonn-convious - just to be clear I find the opposite to be true. If I make a sessions call with GB
everything works fine.
However if I use UK
then the situation you describe arises: the initial /sessions
call works but the subsequent /setup
call fails.
But I take you point... I'll pass on your question to our API team
@sponglord my mistake. You are correct GB
works and UK
doesn't.
Thanks for picking this up!
The API team has created a ticket for this...
(Internal ref: COAPI-408)
Describe the bug A payment session can be created using an invalid country code e.g.
GB
UK
instead ofUK
GB
. In this case the create session endpoint returns 200 success. When trying to load the payment options form for the session the Adyen widget makes a call tohttps://checkoutshopper-live.adyen.com/checkoutshopper/v1/sessions/$SESSION_ID/setup
and a 500 error is returned.To Reproduce Steps to reproduce the behavior:
POST /checkout/v40/paymentSession
withcountryCode: "GB"
countryCode: "UK"
https://checkoutshopper-live.adyen.com/checkoutshopper/v1/sessions/$SESSION_ID/setup
Expected behavior Either the initial call to create payment session should return an error, or, the invalid country code should be ignored and reverted to default.
Additional context The documentation states that the
countryCode
parameter is optional. I'm not entirely clear what the parameter does, or why it can put the checkout to get into a bad state https://docs.adyen.com/api-explorer/Checkout/69/post/sessions#request-countryCode