paydirt_finish_setup
Checks the authorization session from the setup URL, saves credentials securely, and returns complete integration details for installation, Slack, build, and verification.
Instructions
Use this when the user has opened the authorization URL returned by paydirt_begin_setup. Checks one setup session and returns immediately. If pending, do not loop or sleep. When ready, securely saves credentials and returns the complete host-app installation, Slack, build, and verification contract.
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 | Yes | The session_id returned by paydirt_begin_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 |