Skip to main content

CCAvenue avoid Error Code 21007 billing state required parameter missing

In this tutorial, we will see how to avoid Error Code 21007 billing state required parameter missing.
This problem occurs due to very minor mistake made by developer after connecting an application to the CCAvenue payment gateway. Due to some input values that are missing by developers while coding, such error occurs.
CCAvenue is one of the leading online payment gateway service provider similar to other popular providers PayPal, Citrus, PayUMoney etc. Easy integration is an advantage of CCAvenue payment gateway.

As per the guidelines of integration provided by CCAvenue that are necessarily needed to be followed while integrating it into the application. Input values like amount, currency, merchant_id, redirect_url, cancel_url etc are minimum required and should be included in the form before sending the data to CCAvenue page. If we avoid them or forgot to use them into the code, CCAvenue throws an error.
As mentioned above, Billing state is not the required input but if it is added in the form, it should have correct value while sending to CCAvenue page. Billing state (input name -> billing_state) is useful to show the person's state on CCAvenue billing page.

What mistake developers make:

If you see below code, you can find a line with yellow background having a line with an input name billing_state. This line of code is the reason behind the error code 21007 billing_state required parameter missing. Developers mostly mostly make 2 type of mistakes:
1. forgot to assign the value to billing_state input,
2. Assigns the wrong value to billing_state input. (billing_state can have alphabets, spaces and maximum length allowed is 30, no numbers and special characters are allowed).
<table>
  <tr>
    <td colspan="2">Billing information(optional):</td>
  </tr>
  <tr>
    <td>Billing Name:</td><td><input type="text" name="billing_name" value="Person name"/></td>
  </tr>
  <tr>
    <td>Billing Address:</td><td><input type="text" name="billing_address" value="Some Address"/></td>
  </tr>
  <tr>
    <td>Billing City:</td><td><input type="text" name="billing_city" value="City name"/></td>
  </tr>
  <tr>
    <td>Billing State:</td>>td>>input type="text" name="billing_state" value="State name"/></td>
  </tr>
  <tr>
    <td>Billing Zip:</td><td>>input type="text" name="billing_zip" value="zip code"/></td>
  </tr>
  <tr>
    <td>Billing Country:</td><td><input type="text" name="billing_country" value="Country name"/></td>
  </tr>
  <tr>
    <td>Billing Tel:</td><td><input type="text" name="billing_tel" value="phone number"/></td>
  </tr>
  <tr>
    <td>Billing Email:</td>>td><input type="text" name="billing_email" value="email address"/></td>
  </tr>
</table>

The Solution

1. Assign the value to the billing_state input,
2. Assign the proper value to billing_state input. (billing_state can have alphabets, spaces and maximum length allowed is 30, no numbers, no special characters are allowed)

So, in this tutorial, we have discussed how to avoid Error Code 21007 billing_state required parameter missing. Hope, this is useful for you to avoid the error caused by minor mistakes. Please share this post if you like this.

Comments

Popular posts from this blog

CCAvenue avoid Error Code 21002 currency required parameter missing

In this tutorial, we will see how to avoid Error Code 21002 currency required parameter missing. This is a usual problem that occurs after connecting our application to the CCAvenue payment gateway. Due to some input values that are missing by developers while coding, such error occurs. CCAvenue is one of the leading online payment gateway service provider similar to other popular providers PayPal, Citrus, PayUMoney etc. Easy integration is an advantage of CCAvenue payment gateway. But, due to very minor mistakes in coding, developers get few errors while integrating CCAvenue with their application. CCAvenue have provided some guidelines of integration that are necessarily needed to be followed while integrating it into the application. Inputs values like amount, currency, merchant_id, redirect_url, cancel_url etc are minimum required and should be included in the form before sending the data to CCAvenue page. If we avoid them or forgot to use them into the code, CCAvenue th

CCAvenue avoid Error Code 21003 amount required parameter missing

In this tutorial, we will see how to avoid Error Code 21003 amount required parameter missing. This is another problem that occurs due to very minor mistake made by developer after connecting an application to the CCAvenue payment gateway. Due to some input values that are missing by developers while coding, such error occurs. CCAvenue is one of the leading online payment gateway service provider similar to other popular providers PayPal, Citrus, PayUMoney etc. Easy integration is an advantage of CCAvenue payment gateway. As per the guidelines of integration provided by CCAvenue that are necessarily needed to be followed while integrating it into the application. Input values like amount, currency, merchant_id, redirect_url, cancel_url etc are minimum required and should be included in the form before sending the data to CCAvenue page. If we avoid them or forgot to use them into the code, CCAvenue throws an error. As mentioned above, Amount is one of the required values that

CCAvenue avoid Error Code 21001 order id required parameter missing

In this tutorial, we will see how to avoid Error Code 21001 order_id required parameter missing. This is a usual problem that occurs after connecting our application to the CCAvenue payment gateway. But, it is not a big issue to solve. CCAvenue is one of the leading online payment gateway service provider similar to other popular providers PayPal, Citrus, PayUMoney etc. Easy integration is an advantage of CCAvenue payment gateway. But, due to very minor mistakes in coding, developers get few errors while integrating CCAvenue with their application. CCAvenue have provided some guidelines of integration that are necessarily needed to follow while integrating it into the application. It includes some parameters or inputs that are minimum required like amount, currency, merchant_id, redirect_url, cancel_url etc. If we avoid them or forgot to use them into the code, CCAvenue throws the error. As mentioned above Order Id is one of the required values that should be mentioned in co