Skip to main content
PayHubDeveloper docs
简体中文

Developer docs

Use a test key to run your first test payment in 30 minutes.

Choose an integration method

Direct API payments

Best if you already have your own payment page and the platform has enabled direct card for your account. Your server calls the API to create and confirm the payment.

Get started

Hosted checkout

Best if you don't want to handle card data. Create a checkout session and send the payer to the platform's checkout page to pay and complete 3DS authentication.

Get started

Quick links

Warning: Read before you integrate

  • An HTTP 2xx response doesn't mean the charge succeeded. Rely on the payment's status or a webhook with a verified signature (HTTP status).
  • Never treat an unknown status as success. Handle any status, event or error code you don't recognize as "incomplete" (Compatibility).
  • Amounts are integers in the smallest currency unit: USD 10000 means 100.00 and JPY 10000 means 10,000 (Key rules).
  • When the outcome is unknown, don't retry with a new idempotency key. Retry with the original key or query the payment, because a new key can cause a duplicate charge (Idempotency).