Payflex (Buy Now Pay Later) payment gateway

Write a review
Accept Buy Now Pay Later payments in your CS-Cart store via Payflex. Customers pay in 4 interest-free instalments. Product page widget, full/partial refunds, webhook notifications, auto min/max detection. South Africa (ZAR) only.
$129.00

CartModules: Payflex (Buy Now Pay Later)

Accept Buy Now Pay Later Payments in Your CS-Cart Store

Let your customers pay in 4 interest-free instalments with Payflex — South Africa’s leading BNPL payment method. Customers check out now and pay over 6 weeks with no interest, no fees, and no catch. You get paid upfront in full.

This addon connects your CS-Cart or Multi-Vendor store directly to the Payflex payment gateway using their official REST API. Redirect-based checkout keeps you fully PCI compliant (SAQ A) with zero card data touching your server.

Key Features

  • Redirect Checkout — Customers complete payment on Payflex’s secure hosted page, then return to your store automatically
  • Product Page Widget — Shows “or 4 interest-free payments of Rxx.xx with Payflex” on eligible product pages, boosting conversion
  • Full & Partial Refunds — Process refunds directly from the CS-Cart order detail page without logging into the Payflex dashboard
  • Webhook Notifications — Automatic order status updates when Payflex approves or abandons a payment (no polling needed)
  • Auto Min/Max Detection — One click fetches your merchant-specific order limits from Payflex; hides the payment method if the cart total is outside range
  • OAuth2 Token Caching — Tokens are cached for 24 hours so checkout stays fast with no redundant auth calls
  • Sandbox / Live Mode — Toggle between Payflex UAT and production environments from the admin panel
  • Multi-Storefront Compatible — Works with CS-Cart Ultimate and Multi-Vendor multi-storefront setups
  • Idempotent Refunds — Duplicate refund requests are safely rejected by Payflex (no double-refund risk)
  • Detailed Logging — All API interactions logged to CS-Cart’s payment log for easy debugging

How It Works

  1. Customer adds items to cart and selects Payflex at checkout
  2. Your store creates a Payflex order via API and redirects the customer to Payflex’s hosted checkout
  3. Customer completes identity verification and payment plan setup on Payflex
  4. Payflex approves the order and redirects the customer back to your confirmation page
  5. A webhook confirms the payment status, and the order is marked as Processed automatically
  6. You receive the full order amount upfront — Payflex handles the instalment collection from the customer

Product Page Widget

The built-in widget shows a “Pay in 4 instalments” message below the product price on every eligible product page. It automatically calculates the instalment amount based on the product price and only appears when the price falls within Payflex’s accepted range (R10 – R50,000 by default).

Refunds

Issue full or partial refunds directly from the order detail page in your CS-Cart admin. No need to log in to the Payflex merchant dashboard. Refunds are processed via API with idempotency protection — accidental double-clicks won’t create duplicate refunds.

Requirements

  • CS-Cart or Multi-Vendor 4.6.3 or higher
  • PHP 7.1 or higher (tested up to PHP 8.3)
  • Payflex merchant account (merchant.payflex.co.za)
  • Store currency set to ZAR (South African Rand)
  • SSL certificate (HTTPS) on your store

Supported Countries & Currency

CountryCurrencyMin AmountMax Amount
South AfricaZARR10R50,000

Installation

  1. Go to Add-ons > Manage add-ons, click Manual installation, and upload the addon zip file
  2. Activate the addon and enter the license key
  3. Go to Administration > Payment methods and add a new payment
  4. Select Payflex (Buy Now Pay Later) as the processor
  5. Enter your Payflex Merchant ID and Merchant Secret (from your Payflex merchant dashboard)
  6. Enter your Merchant Name for the product page widget
  7. Click Auto-detect limits to fetch your min/max amounts
  8. Set to Test (Sandbox) mode for initial testing, then switch to Live
  9. Save and place a test order

Configuration Options

SettingDescription
Merchant IDYour Payflex API Client ID
Merchant SecretYour Payflex API Client Secret
Merchant NameUsed for the product page widget URL
Payment ModeLive (Production) or Test (Sandbox)
Min/Max AmountOrder amount limits (auto-detectable)
Product Page WidgetEnable/disable the "Pay in 4" message on product pages
Order Status (Approved)CS-Cart status to set on successful payment
Order Status (Abandoned)CS-Cart status to set if customer abandons checkout
Order Status (Failed)CS-Cart status to set on payment failure

Support

For questions, issues, or feature requests, contact us at www.cartmodules.com.

Billing Type:
Lifetime
Compatible versions:
  • 4.10.1
  • 4.10.2
  • 4.10.3
  • 4.10.4
  • 4.10.4.SP1
  • 4.11.1
  • 4.11.2
  • 4.11.3
  • 4.11.4
  • 4.11.5
  • 4.12.1
  • 4.12.2
  • 4.13.1
  • 4.13.2
  • 4.13.2.SP1
  • 4.13.2.SP2
  • 4.13.3
  • 4.14.1
  • 4.14.1.SP1
  • 4.14.2
  • 4.14.2.SP1
  • 4.14.3
  • 4.14.3.SP1
  • 4.15.1
  • 4.15.1.SP1
  • 4.15.1.SP2
  • 4.15.1.SP3
  • 4.15.1.SP4
  • 4.15.2
  • 4.16.1
  • 4.16.2
  • 4.17.1
  • 4.17.2
  • 4.17.2.SP1
  • 4.17.2.SP2
  • 4.17.2.SP3
  • 4.18.1
  • 4.6.3
  • 4.7.1
  • 4.7.2
  • 4.7.3
  • 4.7.4
  • 4.8.1
  • 4.8.2
  • 4.9.1
  • 4.9.2
  • 4.9.3
Localizations:
  • English
Payment type:
One-time payment
Product:
  • Multi-Vendor
  • Multi-Vendor Plus
  • Multi-Vendor Ultimate
  • Store Builder
  • Store Builder Plus
  • Store Builder Ultimate

Addons features

Development:
  • Backend
  • Frontend
Recipient:
  • For customer
  • For owner
  • For vendor
Server Update:

Shared features

External ID:
Cartmodules-Almapay
License number prefix:
CARTMODULES
On market:

No reviews found

FAQ Block