Skip to content

Getting Started

Environment Setup

Before you begin, make sure you have completed the Set Up Test Environment step.

Testhttps://pay-gate-uat.checus.com/aggregate-pay/api/gateway/<PATH>
Productionhttps://pay-gate-hk-prod.checus.com/aggregate-pay/api/gateway/<PATH>

Interaction Flow


Key Interfaces

Interaction Sequence Diagram/Related Interaction TimingCall Direction/Direction of CallInterface Address/API Endpoint
Call Payment API to place an orderMerchant -> Checus/orderAndPay
Asynchronously notify the merchant of the resultChecus -> Merchant/collectResultNotifyUrl
Query transaction resultMerchant -> Checus/orderQuery

Integration Steps

  1. Register a developer center account and enable the payment method.
  2. Configure the payment result notification callback (notifyUrl).
  3. Obtain merchant public key, platform public key, AppID, and other information.
  4. Set up the IP whitelist for the test environment.
  5. Understand the signature mechanism (signing and verification).
  6. Initiate the first payment using the Payment Creation Interface/ orderAndPay API
  7. Receive the asynchronous notification or call the Transaction Query/orderQuery API to check the payment result.
  8. Record the returned PaymentTokenID for subsequent payments.

Core Process

Create Payment

General Parameter Description

When using Token Payment, the following basic fields should be included in the Payment Creation Interface/orderAndPay APIrequest:

  • outTradeNo: Merchant system order number (unique)
  • totalAmount: Amount
  • currency: Currency type
  • country: User's country
  • userId: User identifier
  • frontCallbackUrl: Redirect address after payment completion
  • notifyUrl: Payment result notification callback (can be configured uniformly in the merchant management platform)
  • integrate: Fixed as Hosted_Checkout
  • expireTime: Order closing time, in seconds. Default range: 1800~86400,values outside this range will be forcibly corrected.
  • paymentMethodType: Payment method type, fixed as "CARD"
  • allowedCardOrg: Optional, allowed card brands, such as [ "VISA", "MASTERCARD" ],Empty means all cards are allowed.
  • tokenForFutureUse: Optional, whether to enable Token Payment (Required for Token Payment, and the value must be "true")
  • paymentTokenID: Payment Token, only returned after the first payment, used for subsequent payments

Response

  • tradeToken: Checus transaction number
  • redirectUrl: Returns the Cashier URL; the user needs to enter bank card information on the Checus cashier page.
  • status: Order status (PENDING / SUCCESS)
  • Flow without 3DS Verification (When the user passes paymentTokenID for subsequent payments):
    • The system directly returns status=SUCCESS, along with tradeToken and outTradeNo
    • redirectUrlwill not be returned.
    • The merchant can assume the payment is successful, but still needs to confirm via notification or query.
  • Flow requiring 3DS Verification (When the user makes the first payment with tokenForFutureUse as true OR passes paymentTokenID for subsequent payments):
    • The system returns status=PENDING and redirectUrl.
    • The merchant redirects the user to the Checus Cashier page.
    • After the user completes verification, Checus updates the order status to success.
    • The merchant confirms the final result via callback or query.

Key Tips:

  • Do not rely solely on the status returned by the Payment Creation Interface / orderAndPay API to update your local order.
  • For Cashier Payment Integration, tradeToken, outTradeNo and redirectUrl are always returned.

Get Payment Result

Pay Using PaymentTokenID

PaymentTokenID Query

Merchants can use the PaymentTokenID Query/inquirePaymentToken API interface to query all PaymentTokenIDs bound to a specific user.

Call Direction: Merchant → Checus
Interface Address: /inquirePaymentToken
Key Request Fields:
  • userId: User identifier
  • tokenScope: Fixed value "tokenAcq"
  • paymentMethodType: Payment method type (Optional)
  • cardOrg: Card brand (Optional when paymentMethodType is CARD)
  • paymentTokenID: Specify a particular Token to query (Optional)

PaymentTokenID Unbinding

When a user wishes to remove a bound Token, the merchant can use the paymentTokenID Unbinding/removePaymentToken API interface to delete the Token. Once unbound, the Token can no longer be used for payment.

Call Direction: Merchant → Checus
Interface Address: /removePaymentToken
Key Request Fields:
  • userId: User identifier
  • paymentTokenID: The Token to be unbound
  • removeReason: Reason for unbinding

Released under the MIT License.