Docs

Subscriptions Articles & FAQ

error, wrong value, found_card_pattern, wrong_value

38989385

2021-04-30T10:25:12Z

2025-02-12T08:23:10Z

594

2

2

250548

ChargeBee::InvalidRequestError “customer[company] : wrong value”

ChargeBee::InvalidRequestError “customer[company] : wrong value” 

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.

Related Articles 

What is the Jump to Section under Customer/Subscription details page?
Is it possible to add multiple customers to a single subscription
Unable to create a subscription: "Cannot create the subscription as there is no valid card on file". How do I proceed?
How to move a subscription from one customer to another?
Collect first payment at a later date for a new subscription
Can I change the plan of an existing subscription on behalf of the customer ?
What happens when the number of billing cycle is 0?
How do I create/manage a subscription with users or licences ?
What's the difference between the subscription created, subscription activated and subscription started events?
How to change next billing for multiple subscriptions?
How to get a list of all subscriptions in the customer details page for Reseller type business- (above 20 subscriptions)?
How do I add or remove coupons in Subscriptions?
How can I delete a subscription in Chargebee?
How do I apply Coupons to subscriptions?
How to check the billing amount before an invoice is generated?
How to retrieve the next billing date of a subscription?
Can we have multiple subscriptions in Chargebee?
How do I change my subscription status from Non-Renewing to Active?
How to enable Proration Settings in Chargebee
How to apply coupon while creating a subscription?
Charge /Invoice one-time fee in Chargebee
Subscription Status as Active when payment failed on renewal
Changing the billing date to a different date
How to change the term end date for a specific subscription?
How to give my customers the credits for the unused period when there is a subscription change?
How to let my customer select a different plan during reactivation from the portal?
How to configure backdate subscription and invoices?
Prerequisites for Backdating Subscription actions
Generate a report that shows add-ons by customer/subscription
How do I set a Free Billing Period (manual free trial) for an existing Active subscription?
How can I apply multiple Manual discounts via API to an existing subscription?
How do coupons and taxes work on Chargebee’s checkout page?
Timezone for Subscription filters in Chargebee
Can we apply the setup cost while changing a subscription in PC 1.0 sites?
How to set termination fee for Contract terms?
Will a manual discount be shown in the response of the List Subscriptions API?
Is it possible to receive Apple App Store notifications on my server first and then pass them to Chargebee?
Is there any customer information shared while using App Stores?
What does this statement mean: "This customer has signed up but has not set up their Self-Serve Portal account."?‌
Error “Subscription is in contract so you cannot pause” while pausing the subscription
Unable to backdate subscription cancellation when a contract term is applied
Was this article helpful?
Loading…