Skip to content

exppaystack 0.0.0.1

Choose a tag to compare

@se7enxweb se7enxweb released this 28 Nov 02:22
· 1 commit to main since this release

The first release of exppaystack, the Paystack payment gateway for the Exponential shop.

Buyers pay in Paystack's inline checkout (cards, M-Pesa mobile money and every other channel your Paystack account offers) as the payment step of the kernel's own checkout. Orders are marked paid only after Paystack's API confirms the exact reference, order, amount and currency.

composer require se7enxweb/exppaystack

Package: https://packagist.org/packages/se7enxweb/exppaystack. Start with the README, then the guides in doc/.

What is in it

  • Added: Paystack as a kernel payment gateway (exppaystack, "Paystack (cards, M-Pesa)") for the Payment Gateway workflow event on shop / checkout / before.
  • Added: paystack/pay/<order id>: the inline checkout, for the order's own buyer only (anonymous buyers within their basket's session), with the shop's five-step list.
  • Added: paystack/callback: verifies with Paystack's API (status, reference, metadata order id, amount in subunits, currency), approves the payment, lets the kernel complete the order, sets the order status (Paid by default) and sends the buyer to the receipt.
  • Added: paystack/webhook: HMAC SHA-512 signed requests only; charge.success is confirmed exactly like the callback.
  • Added: Settings for the public key, a secret key file (the key never sits in the settings), the API base URL, the inline script, the channels (cards and M-Pesa by default), the reference prefix, the timeout and the paid order status.
  • Added: Every currency of the order (KES, USD and the others Paystack enables for you), with the shop's preferred currency as the fallback on both sides.
  • Added: Every confirmation asks Paystack, also for an order that is already complete, and a callback and a webhook arriving together complete the order once.
  • Added: Full documentation: installation, configuration, the shop workflow (admin and SQL), currencies and channels, callback and webhook (curl tests, request-shield rules, CSP), order lifecycle (statuses, idempotency, failures, refunds, manual confirmation), testing with a local verify mock, troubleshooting, security, multisite and clusters, customizing, FAQ and upgrading.

Requirements: Exponential 6.x, PHP 7.4 to 8.5 with curl and json, a Paystack account. License: GPL-2.0-or-later.