ChargeBee::InvalidRequestError "customer[company] : wrong value"

Modified on: Tue, 28 Sep, 2021 at 8:58 PM

Scope

Create Subscription fails due to invalid company name


One of the possible reasons for such an error is the validation of the digits for the respective field. 
If we identify card pattern in any input parameters with 14 to 19 digits, this error would be thrown- Error message as "WRONG_VALUE" and the error_code as "found_card_pattern". This can be checked through Luhn check. 

You would need to use a different pattern as some digits example - 20201112192331 falls under the Luhn check. You will be able to check this before passing the input digit here.

Click here to know more about Luhn check in Chargebee.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
×