Skip to main content
HaiPay Subscription Payments are designed for fixed-cycle, fixed-amount plans with a defined term (such as monthly VIP memberships or annual SaaS plans). After the user completes the initial on-session authorization and first payment, HaiPay automatically schedules subsequent recurring deductions and retries.
If you need usage-based billing, variable amounts/schedules, or merchant-scheduled charges, use MIT Payment (/usd/mit/apply) instead. See CIT vs. MIT Transaction Modes for a full comparison.

Quick Start

Review the integration path, required product capabilities, and reading order.

Integration Modes

Choose between Checkout Mode (payUrl) and Component Mode (mode: 'subscription').

Core APIs

Jump directly to subscription create, query, and cancel endpoints.
  • Provide a clear subscription entry, billing-cycle explanation, and cancellation entry.
  • Notify users outside the platform after subscription activation and before or after each recurring charge.
  • Show a subscription service agreement and obtain explicit user consent before starting recurring billing.
  • Keep customer support available, at minimum during the operating hours of your main markets.
  • Dispute Window & Handling Fee: Cardholders may file a dispute within 180 days of the transaction date. Each dispute incurs a 20 USD dispute handling fee.
  • Response Options: Upon receiving a dispute notification, you have two choices:
    • Accept the dispute: Confirm to the issuing bank that you do not contest the refund amount.
    • Contest / Rebuttal: Submit supporting evidence through a guided flow to defend your position, which incurs an additional 20 USD rebuttal fee. If the issuing bank rules in favor of the cardholder, the rebuttal fee is deducted and the transaction amount is refunded.
  • Fee Refund Policy: If you win the dispute, HaiPay refunds the rebuttal fee. However, unless otherwise specified in your HaiPay contract, the initial dispute handling fee is non-refundable under all circumstances.
  1. PCI Compliance: Directly violates PCI DSS (Payment Card Industry Data Security Standard) requirements.
  2. Insufficient Isolation: Third-party WebView or wrapper iframe containers may fail to provide adequate security isolation.
  3. Man-in-the-Middle Risk: Malicious host apps may intercept or tamper with sensitive cardholder data.
  4. Phishing Risk: Users cannot verify that they are entering sensitive credentials in a trusted environment.
Always use Checkout Mode or the official Component Mode in a standard, trusted browser environment.

Quick Start

1

Confirm the business model and prerequisites

Start with the API Description Guide, CIT vs. MIT Guide, and the Subscription Flowchart to confirm your scenario fits fixed-cycle recurring billing.
2

Choose your frontend integration mode

When you call Subscription Apply /subscription/apply, the response returns both payUrl and clientToken:
3

Connect webhooks, queries, and cancellation

Handle both SUBSCRIPTION status webhooks and SUBSCRIPTIONS_DEDUCT recurring charge webhooks on your backend, and provide a user-facing cancellation button mapped to /subscription/cancel.

Integration Modes

Subscriptions share the same frontend integration architecture as one-time payments. Full component parameters, events, and code samples are maintained in the dedicated integration guides:

Core APIs

For full request fields, response schemas, and live debugging, go directly to the API Reference pages:

Subscription Create

POST /subscription/apply — Create a subscription order, launch user authorization, and complete the first charge.

Subscription Query

POST /subscription/query — Check subscription status, platform subscription number, and recurring order number.

Subscription Cancel

POST /subscription/cancel — Cancel an active subscription and stop future recurring charges.

Asynchronous Notifications

When the subscription status changes or a recurring deduction completes, HaiPay pushes an asynchronous notification to the notifyUrl provided in the subscription create request.
To ensure extensibility and compatibility, follow these callback parameter reception guidelines:
  1. Do not declare a specific POJO object to receive callback parameters.
  2. Must use a generic data structure (like JSONObject, Map, etc.) to parse parameters.
  3. This design ensures that if callback fields are extended later, it will not affect your signature verification logic.
After receiving a notification, return HTTP Status Code 200 (200 OK) when business processing succeeds to acknowledge receipt (returning an uppercase SUCCESS body is no longer required). Otherwise, the system treats the delivery as failed and retries.
Triggered when the subscription status changes (e.g., subscription activated, canceled, failed, etc.).

Key Business Rules

Common Questions

When should I use Subscription Payment vs. MIT Payment?

Use Subscription Payment (/subscription/apply, component mode: 'subscription') when you have a fixed billing interval and defined plan duration, and want HaiPay to automatically schedule recurring charges. Use MIT Payment (/usd/mit/apply) (component mode: 'payment') when charges are usage-based, unscheduled, or triggered by your own billing scheduler.
The two parameters are mutually exclusive (when inBankCode is omitted, paymentMethods is required, and vice versa). Pass inBankCode for a single payment method, or pass paymentMethods (e.g., "GOOGLE_PAY,CREDIT_CARD") to dynamically control which payment methods are displayed and their top-to-bottom order.
Recurring off-session charges carry a higher risk of customer disputes if users forget about renewals. Clear terms, pre/post-deduction notifications, and an accessible cancellation entry significantly reduce chargebacks.
Verify that your target market is included in the Supported & Unsupported Regions List and check your merchant account configuration.
Last modified on December 1, 2026