I'm getting an error 'card[billing_zip] : cannot be blank' while creating a new customer via API. What should I do?
Why pass a ZIP code when the gateway does not require one?
Solution
Use the steps below only when your payment gateway does not require a billing ZIP or postal code. If the gateway requires it, pass card[billing_zip] in the API request.
Disable ZIP code validation in card address verification when you create customers through the API without a ZIP code.
Go to Settings > Billing LogIQ > Card Address Verification and clear ZIP/Postal Code.
If the request includes card[billing_zip], Chargebee validates it. Omit card[billing_zip] when you do not have a ZIP code.
You do not have to pass a ZIP code when the gateway does not require one. When the request does include a ZIP code, Chargebee validates it. Clear ZIP code validation with the steps above.
Contact Chargebee Support with further questions.