I am developing a bubble plugin for a payment gateway, but before running an API call there is a pre-request script that is executed , this script provides the Authorization header value.
But I am not understanding where should I put the script in the plugin editor and get value of the API Authorization header in the API section of the plugin editor.
The answer from the Bubble team is below. I hope it helps
"Hi Eren,
Thanks for reaching out. Plugins have an object called ‘context’ with some Bubble utilities. For example context.async – call context.async with a function that kicks off an asynchronous operation, taking a callback taking (err, res). Returns res or else throws error. Would that way of doing a callback work for your use case?"