Skip to main content
Redirects the user to the agreement authorization (signing) page for agreement payments (recurring payments / subscriptions). After the user completes the authorization, the app returns an authorization code that your server exchanges for the agreement payment access token.
Requires Appx 1.24.6 or higher.

How It Works

  1. Your server calls /v1/authorizations/prepare to create the agreement content and receives an authUrl.
  2. The Mini Program calls my.signContract with signStr set to that authUrl. The Rebell app shows the authorization page.
  3. After the user signs, the Mini Program receives authCode and sends it to your server.
  4. Your server calls /v1/authorizations/applyToken within 10 minutes to get the accessToken used for agreement payments.

Parameters

Success Callback

Fail Callback

Error Codes

Code Example