Overview
To streamline the user experience, we offer a unified user interface (UI) that allows users to log in to their Google accounts and effortlessly complete subscription creation or entitlement processes. Unlike OAuth consent, which requires you to manage the user journeys yourself, the Google-managed signup integration simplifies the process.
Furthermore, we've meticulously tailored the user experience to align with the request and the product context, making it more visually appealing, action-oriented, and engaging for users.
Generate a User Session
To guide the user to the activation UI, you'll need to create a short-lived user session. The intent parameters in the request matches exactly a partners.subscriptions.create request, or a partners.subscriptions.entitle request.
Please note the following caveats when generating the user session:
- A user session token should be generated dynamically for an authenticated user. You should refrain from sharing a token directly with a user in an unauthenticated context, such as SMS, or email.
- You can re-generate new session tokens repeatedly for same generate request if necessary, regardless of the previous tokens being expired or not. You don't need to worry about multiple sessions resulting in duplicate fulfillments as guaranteed by the same subscription id.
Redirect to Google Activation UI
Sandbox endpoints:
- Create Intent: https://serviceactivation.sandbox.google.com/subscription/new/$user_session_token
- Entitle Intent: https://serviceactivation.sandbox.google.com/subscription/entitle/$user_session_token
Production endpoints:
Listen to Pub/Sub notifications
Upon the user successfully activating the subscription with Google, we will notify your system via subscription Pub/Sub notifications, where you should see the subscription resource have end_user_entitled = true
.