Skip to main content

Developers

Built for developers.

Create payments, manage refunds, receive transaction updates and build payment operations directly into your product.
POST/api/v1/payments
curl "$RAINBOWPAY_API_BASE/api/v1/payments" \
  -X POST \
  -H "Authorization: Bearer YOUR_PRIVATE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "product": "Order RP-10428",
    "amount": 125000,
    "currency": "HKD",
    "orderNumber": "RP-10428",
    "callbackUrl": "https://merchant.example/payments/callback",
    "redirectSuccessUrl": "https://merchant.example/checkout/success",
    "redirectFailUrl": "https://merchant.example/checkout/failed",
    "locale": "en"
  }'

Everything you need to integrate

Keys stay on your server

Every call is authenticated with a private key sent as a bearer token over HTTPS. Never embed it in a browser or mobile app.

Separate environments

Sandbox and production use different credentials. Production access follows compliance, commercial and technical approval.

Full reference

Parameters, response formats, error codes and payment states are documented at docs.rainbowpay.hk.

Lifecycle

From request to callback.

  1. Merchant server

    Creates the payment with your private key.

    POST /api/v1/payments
  2. Rainbow Pay API

    Validates the request and returns a payment token.

    200 · token
  3. Payment processing

    The customer pays; authentication runs where required.

  4. Result

    The payment reaches a final status.

    approved | declined
  5. Callback

    Status is posted to your callback URL.

    POST callbackUrl

Ready to discuss your payment setup?

Tell us how your business accepts payments today and what you need from your next payment integration.

Cookie preferences

Choose which optional cookies we may use. Strictly necessary cookies are always active because the website cannot work without them.

  • Strictly necessary

    Security, load balancing, form protection and remembering your cookie choice.

    Always active

Read the Cookie Policy