Setting an invalid shopper country code on payment session breaks checkout #2643
Labels
API issue
Relates to the API rather than AdyenWeb
dependencies
Issue with a project dependency or associated system
Progress: on hold
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 to
https://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-countryCodeThe text was updated successfully, but these errors were encountered: