I have a function in UI Builder that accepts a price and description as arguments.
The function prompts a checkout to display and creates a listener for the “Pay” button.
When the listener in the custom code block is triggered by clicking “Pay”, it process a stripe charge using the Backendless plugin. Upon successful payment, the listener custom code prints “Payment Done”
else {
    console.log('Payment Done');
}
I need to replace the “Payment Done” message with:
(a) some codeless blocks it will always use to close the checkout window
(b) some codeless blocks that are passed to the function somehow as arguments
In a nutshell, my question is (a) how would I go about triggering a function of codeless blocks from custom code and (b) how would I pass a function of codeless blocks to the codeless function for it to execute. What I’m trying to achieve is passing actions that will trigger after the successful payment in a custom code block listener.




