Callbacks
Learn how to handle payment lifecycle events with callbacks.
Overview
CryptumPay Widget provides three main callbacks to integrate with your web application:
onCreateOrder- Called when button is clicked (create order)onCreateCustomerOrder- Called when the user selects currency/network and a customer order is created inside the widgetonFinishOrder- Called when payment completes successfully
For detailed API documentation, method signatures, and usage examples, see Button Class.
See Also
- Button Class - Complete API reference with examples
- Events Flow - Events flow
- Backend Integration - Server-side integration