Subscription Application
Create subscription order
Documentation Index
Fetch the complete documentation index at: https://doc.haipay.net/llms.txt
Use this file to discover all available pages before exploring further.
Secret Key & Private Key (Generate Signature)
Related Topics
Body
Business ID (obtained from the backend, must pass the corresponding business ID according to the currency in the URL)
Merchant order ID (must be unique, max length 48)
48Transaction amount (accurate to two decimals; punctuation such as “,” is not allowed)
^\d+\.\d{2}$Real phone number
Subscription title
CREDIT_CARD, GOOGLE_PAY, APPLE_PAY. Mutually exclusive with paymentMethods.
CREDIT_CARD, GOOGLE_PAY, APPLE_PAY SUBSCRIPTION
SUBSCRIPTION Redirect URL after successful payment
Asynchronous notification URL
Country
Currency, currently supported: USD
USD User unique identifier (e.g., userId). Used for risk control. Must be real and valid, otherwise it will affect the transaction. Format: digits, letters, or common symbols -~!@#$%&*()_.
^[A-Za-z0-9\-~!@#$%&*()_]+$Recurring cycle type D(day),W(week),M(month),Y(year)
D, W, M, Y Recurring cycle interval
x >= 1Maximum number of cycles. Regardless of cycle type, maximum duration cannot exceed 3 years. Subscription will be automatically canceled at expiration.
x >= 1Transaction website
Retry attempts for failed periodic deductions, default 3
x >= 0Signature
User name, recommended to use real name. Format: includes firstName and lastName, separated by space. Example: Donald John Trump
Real email
Remark details
If provided, the user can click “Back” on the payment page to return to this URL.
Discount Period (Currently only the first period discount and the full period discount are supported, i.e., couponPeriod can only be equal to 1 or recurringMaxNumber)
Discount amount per period
^\d+\.\d{2}$Supported payment methods list, separated by commas, e.g., CREDIT_CARD,GOOGLE_PAY,APPLE_PAY. Mutually exclusive with inBankCode. Currently only supports the front-end component combination mode.

