Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('gform_authorizenet_before_single_payment','my_anet_custom_fields', 10, 2);
- function my_anet_custom_fields($transaction, $form_data) {
- # GET DATA FROM FORM INPUT
- $form_data["phone"] = rgpost('input_3');
- # ADD DATA TO TRANSACTION OBJECT
- $transaction->phone = $form_data["phone"];
- return $transaction;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement