window.rownd
object.
subscriptionId
(string): The subscription ID from the available plans responseplanId
(string): The specific plan/price ID to subscribe to (format: prod_XXX__price_YYY
)window.rownd
is available before making API calls. The Rownd SDK must be fully initialized.
subscriptionId
is different from the planId
- use the correct one for each API callCopy and paste this prompt into Cursor to implement Rownd Subscriptions in your app:
Note: This prompt is designed to work with Cursor’s AI capabilities to generate a complete implementation based on the Rownd Subscriptions documentation. The generated code will include proper error handling, loading states, and TypeScript types.
window.rownd.subscriptions.available()
id
field in the response (e.g., "sub_r7i3j3hf7nliv0somxl99d08"
)presentation.options[].id
field in the available plans responseprod_XXX__price_YYY
subscriptionId
: From the available() response (e.g., "sub_r7i3j3hf7nliv0somxl99d08"
)planId
: From the plan options (e.g., "prod_XXX__price_YYY"
)