Open pc-coholic opened 2 months ago
Hi @pc-coholic --
I wanted to note that this is expected in countries where we do not support routing priority, such as PT. The above options should only be used in countries where we have enabled domestic debit priority and can be used to change the priority of the card read based off the parameter.
Summary
Setting a CardPresentRoutingOption for a on-device generated PaymentIntent will cause an error-message, if the account in question tied to a non-supported country.
will work fine for a Stripe Account in Germany, but not for one in Portugal.
After experimentation, I can say that this seems to be tied to the Stripe Account country rather then the terminal's location.
In my opinion this code path should never fail and just fall back to the international priority instead of causing a hard 400 parameter_unknown (
Received unknown parameter: payment_method_options[card_present][routing]
)Code to reproduce
Android version
Android 10 and others
Impacted devices (Android devices or readers)
No, applies to all
SDK version
3.8.0
Other information