PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Question on Saving the credit card number

  1. I have a need for the credit card number (not masked) and need to send it on to another system. Is there a way to accomplish this? I am wondering which hook to use and if anyone might have a snippet of code. Specifically, I would like to get the unmasked credit card number and save it to a hidden field for now.

    I tried this one to no avail:

    add_filter("gform_pre_submission_filter", "add_cc");
    function add_cc($form){
    
        //get the credit card
        $cc  = $_POST["input_91.1"] . ",";
        $_POST["input_98"]=$cc;
        //returning modified form object
        return $form;
    }
    Posted 11 years ago on Thursday January 10, 2013 | Permalink
  2. I think my problem is that it is a multi-page form. It looks like I picked the right hook.

    Posted 11 years ago on Thursday January 10, 2013 | Permalink
  3. That is the correct code for copying from one input to another. Is this working for you now?

    Posted 11 years ago on Friday January 11, 2013 | Permalink