Select Page
Methods Documentation
Edit on
Codepen.io

Public Method Callback Function

All public methods accept an additional parameter – callback function. This function will be called after the specific request was made. Unlike generic “data-data-callback” which is called once for a request chain (meaning that if multiple consequent requests are made only last request will return order object) callback functions passed to public methods will be called with the order object resulted from the call giving you more flexibility around integration.



Related Topics