• Resolved whiterat

    (@whiterat)


    Hello,

    I have a very simple question I have not managed to answer myself, although I’ve gone through quite a few sites.

    I am trying to develop a payment gateway for woocommerce (v 2.3.7) and I’m having trouble retrieving the contents of custom fields.

    For example I have something like:

    public function payment_fields () {
    
    //as I understand I am not expected to enter anything else (e.g. <form>, submit, etc)
    
    <input type = "radio" name = "z" value = "true" />
    
    }

    The field appears on the checkout page as expected but that seems to be about it. The $_POST that reaches process_payment() does not contain any trace of my field.

    Should I use a different technique for adding the field or is the problem somewhere else?

    I appreciate your help.

    https://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • Thread Starter whiterat

    (@whiterat)

    The thing works like a charm… 🙂 I have no idea what was wrong before.

Viewing 1 replies (of 1 total)
  • The topic ‘getting the values passed via payment_fields()’ is closed to new replies.