Payment methods - IBAN not being accepted
Problem Statement
This article helps you understand why an IBAN may not be accepted as a payment method.
Solution
One of our customers in France is entering a valid IBAN in the payment method field but it is not being accepted.
This could be seen due to the "Invalid IP address" error when they try to add a payment method. This usually happens when the card's IP address and the Billing country of the customer do not match.
If true, in this case, you would have to rely on API to manually pass the IP address. You can use Chargebee's Update a card payment source API and pass the correct IP address in the request header.
For example:
curl [https://abcdef123-test.chargebee.com/api/v2/payment_sources/pm_1mkVvpLQxIB1zWJjL/update_card](https://abcdef123-test.chargebee.com/api/v2/payment_sources/pm_1mkVvpLQxIB1zWJjL/update_card) \
-u **:
-H chargebee-request-origin-ip:46.101.38.123
-d card[first_name]="John"