getting the values passed via payment_fields()
-
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.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘getting the values passed via payment_fields()’ is closed to new replies.