<script> will fire a custom event for you to hook into. This can be utilized to automatically apply the code for the user in checkout.
To utilize this event you can use the following in your JavaScript code:
callbackData is an object with the following properties: