Hello dear WordPress and Woocommerce users and experts,
I am currently developing a custom payment gateway class for an e-commerce website. Such gateway has custom fields where the user picks the credit card he wants to use and the amount of payments in which he wish to complete his purchase.
Such fields are inserted using the payment_fields() function.
I am unable to load this fields in anyway on my class. I tried using $_POST['fieldname'] and $order->'fieldname' (Change it for the actual name). This proved to be useless. I am kind of lost and could not find any solution online. If someone could point me in the right direction it would be great.
This is the website url:
You can find the custom fields upon choosing 'Pagos Web' as a payment method.
I appreciate any kind of help.