26 October 2026
SDK
We have added the optional
onSubmit property to the Checkout Browser SDK initialization.The
onSubmit callback gives you greater control over the payment flow by allowing you to run custom validation checks, such as external stock or cart verification, before initiating payment with the payment service provider (PSP). If validation fails, you can return an error status and display custom error messages to ensure that all business requirements are met before proceeding.For more information, see onSubmit.