Error Handling
All SDK methods return Promises and should be wrapped in try/catch:Common Errors
| Error Code | Description | Resolution |
|---|---|---|
SHOW_FAILED | Failed to present the offer sheet | Verify placement ID exists in the Dashboard and SDK is configured |
NO_ACTIVITY | (Android) No current activity available | Ensure show() is called when an Activity is in the foreground |
Purchase Flow Errors
When usingcompletePurchaseRequest(), the method returns { success: false } with an error message if no pending purchase request exists — it does not throw.