Select Page
Callbacks Documentation
Edit on
Codepen.io

data-popup-closed

A JavaScript function you may provide, which will be invoked when popup is closed. The function must accept an object which will contain the internal FastSpring order ID (key: id) and a customer-facing order reference (key: reference). The order id will only be passed upon successful order completion. If the popup is closed before the order is completed, “null” will be passed.