Skip to content

Logo

LeoGC

Payment Infrastructure Built for Digital Commerce Across Africa and Beyond

Supports in this guide: Payments

Provider website: leogcltd.com


What you need to do for start processing transactions (brief summary)

  1. Get your credentials (from LeoGC)
  2. Connect in Dashboard
  3. Send an API request

Prerequisites: get from LeoGC

Contact your LeoGC account manager to get your account verified and receive the following credentials.

  • Client Key -> Corefy field client_key.
  • Client Pass -> Corefy field client_pass -> used to sign every request.
  • Save Instant Token -> Corefy field save_instant_token -> enable to save the card as a token during a sale, so you can charge it again later without resending card data. You must decide this when connecting - it can't be left unset.
  • API URL (optional) -> Corefy field api_url -> leave as default unless your account manager gives you a different endpoint (e.g. for a sandbox).

Payments processing (connect H2H Merchant account, create payment-invoice)

Connect H2H Merchant account in Corefy Dashboard

Step 1 - Open connection form

Open LeoGC in the provider directory and press Connect at LeoGC Provider Overview page in the New connection section. Choose H2H Merchant account.

Step 2 - Fill in fields and select settings

  • Client Key
  • Client Pass
  • Save Instant Token
  • API URL (optional)

Choose Currency / Features; check with your Corefy account manager which are enabled for your account.

Success

You have connected LeoGC H2H Merchant account!


First request to Corefy API (MIN)

What it does: creates a payment-invoice; card data itself is collected and submitted separately by Corefy's checkout/SDK layer, not as part of this request. LeoGC may return a 3D Secure challenge redirect depending on the card. CVV is always required - non-CVV sales aren't supported.

Payment - MIN

POST /api/payment-invoices

{
  "data": {
    "type": "payment-invoice",
    "attributes": {
      "reference_id": "8e3dbbb0-17af-4c9a-bedb-93bdac6900a2",
      "service": "payment_card_usd_hpp",
      "currency": "USD",
      "amount": 10
    }
  }
}

Note

This connector currently supports USD only.

Payment - MAX

POST /api/payment-invoices

{
  "data": {
    "type": "payment-invoice",
    "attributes": {
      "reference_id": "6795502c-e27d-4d07-85e0-93245aab9a3f",
      "service": "payment_card_usd_hpp",
      "currency": "USD",
      "amount": 10,
      "customer": {
        "reference_id": "cus_123",
        "name": "John Smith",
        "email": "johnsmith@gmail.com",
        "phone": "+15551234567",
        "date_of_birth": "1990-01-01",
        "address": {
          "country": "US",
          "region": "NY",
          "city": "New York",
          "full_address": "1 Main street",
          "post_code": "10001"
        }
      }
    }
  }
}

customer is entirely optional - anything you don't send falls back to the Constants below, or is simply left blank on LeoGC's side.


Extended request (MAX)

Why add extra fields (typical reasons): - Provide additional customer details for compliance/reconciliation - Positively influence conversion rate - Include optional fields required by your specific flow


Options

  • auth -> optional, boolean - authorization mode: holds funds without capturing them, instead of an immediate sale.
  • ignore_callback -> optional, boolean - for cascading to work correctly, excludes finalizing the payment from the asynchronous callback; Corefy then relies only on an active status request (reconciliation) to finalize it.
  • allow_ipv6 -> optional, boolean - sends the customer's real IPv6 address to LeoGC as-is; when disabled (default), an IPv6 client IP is replaced with a placeholder IP (or the IP constant, if set) because LeoGC expects IPv4.

Constants (fallback fields)

Constants are static values that Corefy can send to the provider instead of dynamic data from your API request, when those fields are missing in the request.

Priority (predictable rule): 1. If a value is present in the request -> Corefy uses the request value 2. Else if the constant is set -> Corefy uses the constant 3. Else -> provider may reject the request or apply its defaults (depends on provider)

Currently available constants (constant -> Corefy API field)

  • PAYER_FIRST_NAME -> customer.name (first part)
  • PAYER_LAST_NAME -> customer.name (second part)
  • PAYER_MIDDLE_NAME -> used only when neither customer.name nor the card's embossed name is available
  • PAYER_EMAIL -> customer.email
  • PAYER_PHONE -> customer.phone
  • PAYER_BIRTH_DATE -> customer.date_of_birth
  • PAYER_COUNTRY -> customer.address.country
  • PAYER_STATE -> customer.address.region
  • PAYER_CITY -> customer.address.city
  • PAYER_ADDRESS -> customer.address.full_address
  • PAYER_ZIP -> customer.address.post_code
  • IP -> fallback IP sent instead of the customer's real IP, only when it's IPv6 and allow_ipv6 is disabled
  • TERM_URL_TARGET -> the browser target (e.g. same window/frame vs. a new one) used when redirecting the customer back after a 3D Secure challenge; defaults to the same window if not set

Refunds

LeoGC supports full refunds only (no partial refunds), and only one refund per payment.


Recurring (save and charge a token)

This connector supports saving the card as a token during a sale (via Corefy's standard tokenize-on-sale request, enabled through Save Instant Token) and later charging that same token without sending full card data again.


Additional info

  1. The H2H Merchant account uses a single fixed callback endpoint rather than a per-transaction URL; it's already set up on Corefy's side, nothing to configure in LeoGC's own back-office.
  2. No payouts - this connector does not support payouts through Corefy.

FAQ / Troubleshooting

  • Invalid credentials / auth error -> verify Client Key/Client Pass for the selected environment
  • Refund fails -> only one full refund is allowed per payment - partial refunds aren't supported
  • Currency or service is not supported -> confirm allowed currencies/features in your LeoGC account and in Corefy

Question

Still looking for help connecting your LeoGC account? Please contact our support team!