Gravity Forms Credit Card Field Offline Payment Processing

Gravity Forms is a premium form plugin for WordPress. It is the most robust and up to date form plugin for WP. I have been using this plugin since 3 years and a few days ago i need a “Credit Card Field”. And also our client asked for the offline payment processing with this field. But it is disabled by default in form coding. We may build our own Credit Card Field with various input types but also we then had to very hard working on style files and browser compatibility issues. So we have worked on how to save Credit Card Field data to db and success, we made it:) Below you will learn how to achieve to build this type of form.

1 – First we should enable the hidden “Credit Card Field” on admin panel. You should search the following line inside the wp-content/plugins/gravityforms/form_detail.php file.

 

if(apply_filters(“gform_enable_credit_card_field”, false))

 

when you switch “false” value to “true” you will see the hidden Credit Card Field below the Pricing Field section.

 

 

2 – In this step you should search the following code block inside wp-content/plugins/gravityforms/forms_model.php file;

and replace the above code with the following;

 

After saving the file Credit Card Fields would save to the database and also entries tab. That’s it:)

 

Gravity Forms Credit Card Field Offline Payment Processing” hakkında 1 yorum

  1. Hey there! I’m looking to do the same thing but the code has changed substantially in the new version of gravity. Any chance you’ve updated this? Thanks a lot!

Bir Cevap Yazın