Skip to main content

API vs CHECKOUTPAGE

ClaPay supports two primary ways of processing payments:

  • Tunnel : API (server-to-server)
  • Tunnel : CHECKOUTPAGE (Checkout/redirect flow)

This guide explains the difference between them and how to use API mode in your integrations.

πŸ” API Tunnel Mode

​

The API tunnel allows direct payment processing from your backend. This is ideal for platforms that want to handle the payment experience programmatically.

βœ… Use Case

​

  • MERCHANT (Deposit)
  • CASHIN (Withdrawal)
  • Ideal for apps with built-in payment flows

🧾 Request Payload Parameters to be add to the classic payload

​

FieldRequiredDescription
operator_otpYesOTP if required by the operator
tunnelYesShould be set to "API"
note

Some operators require OTP upfront, others don’t.

πŸ§ͺ Sample Request

​

{
...
"tunnel": "API"
}

πŸ” CHECKOUTPAGE Tunnel Mode

​

CHECKOUTPAGE Screenshot

The CHECKOUTPAGE Mode allows you to redirect your users to a secure ClaPay hosted page where they can complete payments easily and safely.

This is the quickest way to integrate payments without managing any UI components or compliance yourself.

βœ… Why Use CHECKOUTPAGE?

​

  • No front-end development required.
  • Safe & secure environment for users to pay.
  • Mobile-friendly experience.
  • Ideal for MVPs or websites that need a fast payment setup.

πŸ”§ How It Works

​

  1. Send a request to ClaPay’s payment initialization endpoint.
  2. Set "tunnel": "CHECKOUTPAGE" in your payload.
  3. Receive a payment_url in the response.
  4. Redirect your customer to this URL.
  5. ClaPay handles the rest: payment input, confirmation, redirection.

πŸ“€ Sample Request

​

{
...
"tunnel": "CHECKOUTPAGE"
}

πŸ“Š Summary: API Mode vs CHECKOUTPAGE

​

ClaPay offers two powerful ways to process payments. Here’s a quick comparison to help you choose the right one for your needs.

FeatureTunnel ("API")Tunnel ("CHECKOUTPAGE")
UI ControlFull control (your own payment form)No control (hosted by ClaPay)
Ease of IntegrationRequires backend logicQuick to integrate
Security HandlingHandled by youHandled by ClaPay
Redirect Required❌ Noβœ… Yes
Custom Experienceβœ… Highly customizable❌ Not customizable
Best forApps, platforms with existing payment UIWebsites, MVPs, low-code setups
Example Use CasesMobile apps, backend flowsSimple e-commerce sites, donation pages

βœ… Use API Tunnel if you need total control over payment handling in your app.

βœ… Use CHECKOUTPAGE Tunnel if you want simplicity, hosted security, and faster setup.

note

You can support both modes in parallel to match different user flows.

Was this page helpful?