paydirt_setup
Starts a single-call Paydirt SDK setup for older clients, returning an authorization URL and finish arguments. With a session ID, it checks setup status without opening a browser.
Instructions
Use this when an older client expects the single setup tool. Without session_id it starts setup and immediately returns authorization_url plus finish arguments; with session_id it checks once and returns pending, expired, or the complete installation contract. It never opens a browser or blocks. New agents should prefer paydirt_begin_setup and paydirt_finish_setup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_name | No | Preferred app name to reuse or create during setup | |
| bundle_id | No | Preferred iOS bundle ID to match during setup | |
| use_cases | No | Feedback experiences to install. Defaults to regular feedback, trial cancellation, and subscription cancellation. | |
| session_id | No | Setup session returned by the first call. When present, this call behaves like paydirt_finish_setup. | |
| app_description | No | Optional app description to save when creating or repairing setup | |
| uses_revenuecat | No | Deprecated compatibility input. Prefer subscription_provider. | |
| subscription_provider | No | Subscription source of truth discovered in the host app. Use auto only when it could not be resolved before setup. | |
| subscription_product_ids | No | Native StoreKit auto-renewable product IDs. Required for a complete storekit integration. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| message | No | ||
| success | Yes |