This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Turn on our credit card field for admin and front end | |
| add_action("gform_enable_credit_card_field", "enable_creditcard"); | |
| function enable_creditcard($is_enabled){ | |
| return true; | |
| } | |
| //Email encoded card details when the form is submitted. | |
| add_action('gform_after_submission', 'email_encoded_cc', 10, 2); | |
| function email_encoded_cc($entry, $form) { | |
| function get_creditcard_field($form){ | |
| $fields = GFCommon::get_fields_by_type($form, array("creditcard")); |