Hi, could you please provide more information on how you’re testing? Is this in the sandbox environment? If so, which test credit cards are being used?
The sandbox environment is working fine. We had tasted with all the test cards and it worked ie. successful SCA popup and the transaction. We are getting this issue in production with our customers in EU.
Hi @nikhar, yes I got an update from the team today! It looks like the issue is that the Web Payments SDK was instantiated with a different Location ID than was used to process the payment, which is causing these to be declined.
You’ll need the location ID in your Web Payments SDK initialization…
But I noticed I am not explicitly passing location_id in my POST request to the Payments API (CreatePayment).
It sounds like that could be the gap causing the mismatch you described. Am I understanding correctly that adding location_id to the CreatePayment(Payments API) payload, matching the SDK Location ID, is likely the fix?
@nikhar Yes, that should be the fix! If you’re not passing in the location_id explicitly in your CreatePayment request, it will default to your account’s main location. By the sounds of it, that’s probably a different location than what’s being used to initialize the Web Payments SDK.