Skip to main content
Start a payment transaction: the Mini Program opens the Rebell payment page, the user confirms the order (payee and amount) and pays, and Rebell shows the payment result and returns the user to the Mini Program. The paymentUrl is created by your backend:

Parameters

The generic Mini Program my.tradePay API also accepts tradeNO (max 64 characters) or orderStr as alternative ways to start a payment, depending on the host app’s payment service. Rebell payment OpenAPIs return a cashier URL, so Rebell Mini Programs use paymentUrl. Pass only one of these parameters.

Success Callback

Result Codes

Code Example

Never trust the JSAPI result as final. The resultCode is indicative only. Always confirm payment status via backend webhook before updating business state.

Payments in Mini Apps

Complete payment guide