1. Choose Checkout Integration
Compare Checkout Mode (
payUrl redirect) and Component Mode (clientToken embed).2. Choose Transaction Mode
Understand One-Time CIT, On-Demand MIT, and Fixed-Term Subscriptions to match your billing model.
3. Sandbox Test Cards
Simulate successful payments, issuer declines, and post-transaction disputes in the test environment.
Transaction Modes & Capability Matrix
Select the appropriate API endpoint based on whether you are charging once, saving a card for merchant-scheduled/usage-based charges, or running a fixed-cycle subscription plan:Checkout Integration at a Glance
HaiPay decouples payment methods from checkout integration modes. Every create endpoint returns bothpayUrl and clientToken:
- Checkout Mode: Redirect the user to HaiPay’s hosted payment page using
payUrlfor quick verification with minimal frontend work. - Component Mode: Mount the pre-built Component inside your own webpage using
clientTokenfor optimal build efficiency so users pay with cards, Apple Pay, or Google Pay without leaving your site.
Payment Methods, Codes & Limits
Card (credit and debit) and mobile wallet transactions are priced and settled in USD (using your USDappId), with a single-transaction limit of 0.99 – 1000 USD:
Mutual Exclusivity between
inBankCode and paymentMethods:- Pass
inBankCodewhen specifying a single payment method (leavepaymentMethodsempty). - Pass
paymentMethods(comma-separated, e.g.,"GOOGLE_PAY,CREDIT_CARD") to dynamically control which payment methods are displayed and their top-to-bottom display order (leaveinBankCodeempty). For example, passing"GOOGLE_PAY,CREDIT_CARD"displays only Google Pay followed by Credit Card from top to bottom. - This dynamic display and ordering capability also maps to the Global Cashier.
Core APIs & Interactive Playground
For complete field definitions, signature rules, response schemas, and live testing, jump to the API Reference:Card Collection Apply
POST /usd/collect/apply — Create a one-time CIT collection order supporting credit/debit cards, Apple Pay, and Google Pay.MIT Collection Apply
POST /usd/mit/apply — Initial card-saving charge (omit tokenID) or subsequent off-session MIT charge (pass tokenID).Collection Order Query
POST /usd/collect/query — Query the final payment status and fee breakdown of a collection or MIT order.Refund Apply & Query
POST /usd/refund/apply and Refund Query /usd/refund/refundQuery — Full or partial refunds (refundAmount).Request Examples (/usd/collect/apply)
- Option 1: Single Payment Method (pass inBankCode)
- Option 2: Dynamic Display & Order (pass paymentMethods)
To specify card payment only, pass
payType: "BANK_TRANSFER" and inBankCode: "CREDIT_CARD" (omit paymentMethods):Compliance, Disputes & Security
- PCI Compliance: Directly violates PCI DSS (Payment Card Industry Data Security Standard) requirements.
- Insufficient Isolation: Third-party
WebViewor wrapperiframecontainers may fail to provide adequate security isolation. - Man-in-the-Middle Risk: Malicious host apps may intercept or tamper with sensitive cardholder data.
- Phishing Risk: Users cannot verify that they are entering sensitive credentials in a trusted environment.
Explore Related Guides
Apple Pay & Google Pay
Device, OS, and browser requirements (
#supported-browsers) and wallet configuration details.CIT vs. MIT Transaction Modes
Deep dive into on-session customer-initiated vs. off-session merchant-initiated transactions and subscriptions.
MIT & Subscription Guides
Supported Regions & Test Cards
Browse the 62 supported countries/regions and sandbox test card numbers.

