Paymentez gateway for WooCommerce

Card payments in WooCommerce through a regional processor that had no plugin.

Role
Lead developer
Built with
PHP, WooCommerce payment gateway API, Paymentez API
Paymentez gateway for WooCommerce · how it works
  1. 01CheckoutThe shopper pays
  2. 02TokeniseCard becomes a token
  3. 03AuthoriseThen capture
  4. 04WebhookReconciliation
  5. 05RefundFrom the order screen

One card payment, from checkout to reconciliation. A diagram, not a screenshot: the plugin was written for agency clients and runs on their sites.

The problem

Clients in Latin America needed to take cards through Paymentez, a regional processor with no WooCommerce plugin.

What I built

I wrote the gateway from the Paymentez API documentation up, on WooCommerce's payment gateway API, so it works like any other payment method at checkout.

It handles tokenisation, authorisation and capture, refunds from the order screen, and webhook reconciliation, so the order status always reflects what the processor actually did.

Under the hood

  1. Checkout. The shopper chooses card payment at a normal WooCommerce checkout.
  2. Tokenise. The card details are tokenised.
  3. Authorise. The payment is authorised and captured through the Paymentez API.
  4. Webhook. Webhooks report what the processor did, and the order status follows.
  5. Refund. Refunds go back through Paymentez from the WooCommerce order screen.

Guardrails

  • Order status follows the processor's webhooks, not assumptions.
  • Card details are tokenised.
  • Refunds run from the WooCommerce order screen.

Built with

  • PHP
  • WooCommerce payment gateway API
  • Paymentez API

What it does

  • Tokenisation

    Card details handled as tokens.

  • Authorise and capture

    Through the Paymentez API.

  • Refunds

    From the WooCommerce order screen.

  • Webhook reconciliation

    Order status always matches the processor.

Outcome

Merchants in Latin America could take cards in WooCommerce through a regional processor that had no plugin.

3 questions about Paymentez gateway for WooCommerce, answered

What was Arvind's role on Paymentez gateway for WooCommerce?

Lead developer.

What did the work on Paymentez gateway for WooCommerce cover?

PHP, WooCommerce payment gateway API and Paymentez API.

What changed with Paymentez gateway for WooCommerce?

Merchants in Latin America could take cards in WooCommerce through a regional processor that had no plugin.