Skip to content

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 widget
  • onFinishOrder - Called when payment completes successfully

For detailed API documentation, method signatures, and usage examples, see Button Class.

See Also ​

Released under the MIT License.