Error Handling
All SDK methods return Promises and should be wrapped in try/catch:Common Errors
Purchase Flow Errors
When usingcompletePurchaseRequest(), the method returns { success: false } with an error message if no pending purchase request exists — it does not throw.