var model = SessionRequestModel(...) // Your session modelmodel.items.Add(new OfferItemModel( "Coins", "https://media-dev.appcharge.com/media/product-3.png", "coins_xo", 300));
In the final step, open the checkout by passing the product model to it:
CheckoutController.Instance.OpenCheckout(model);
At runtime, a new window will open, guiding the user through the purchase process. Based on user interaction, the following interface methods will be triggered:
Method
Description
OnPurchaseSuccess
Triggered when the user successfully completes the purchase.
OnPurchaseFailed
Triggered when the checkout window is closed or if an error occurs during the purchasing process.
Was this page helpful?
⌘I
Assistant
Responses are generated using AI and may contain mistakes.