WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Loading payment_fields on my custom gateway class (1 post)

  1. Arbolus
    Member
    Posted 1 month ago #

    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:

    Website Link

    You can find the custom fields upon choosing 'Pagos Web' as a payment method.

    I appreciate any kind of help.

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

Reply

You must log in to post.

About this Plugin

About this Topic