arrow_back_iosQuestions
help

Can I redirect the customer to the specific web page after a successful order?

check_circle
Yes. To do this, in the event handler code, handle the ORDER_COMPLETED event. You will get a code like this:
window.bukzaCallbackFor[widget container ID] = function(payload){
    switch(payload.message.event){
        //other handlers
        case 'ORDER_COMPLETED':
            window.location = '[redirect page URL]'
            break;
    }
};
If you insert code inside a widget, use something like this:
<html>
<body>
<script>
window.addEventListener('message', function (e) {
 if (e && e.origin
      && e.origin.indexOf('bukza.com') !== -1)
   var message = JSON.parse(e.data);
   switch (message.event) {
       //other handlers
       case 'ORDER_COMPLETED':
           window.top.location.href = '[redirect page URL]'
         break;
     }
   }, false);
</script>
</body>
</html>
Didn't find the answer to your question?
Feel free to ask it at
mail_outline support@bukza.com