WordPress Developer Ukraine, Kyiv
Create a WooCommerce Payment Gateway Plugin from Scratch

Create a WooCommerce Payment Gateway Plugin from Scratch

A WooCommerce payment gateway plugin from scratch When a regional payment provider has no WooCommerce plugin, you write one. The gateway class extends WC_Payment_Gateway: settings for the API keys and a test mode, process_payment() to start the payment, and a webhook that confirms it. The common case today is a redirect gateway: the customer pays…
Add a custom field to the WooCommerce checkout page

Add a custom field to the WooCommerce checkout page

Add a custom field to the WooCommerce checkout page The WooCommerce checkout collects the usual data: billing and shipping address, contact details, payment method. Real shops often need more at the moment of purchase: a gift message, a preferred delivery time, artwork instructions, a company VAT number. The checkout is the right place for it,…