PageSourceSearch

https://www.caffebarbera.com/pub/static/frontend/Smartwave/caffeba…/Bitpay_BPCheckout/js/bitpay/config.min.js

js caffebarbera.com collected 2026-10-02 21:24:04 UTC 1,595 bytes, 21 lines download raw bytes

1function showModal(env,response){if(env=='test'){bitpay.enableTestMode()}
2response=JSON.parse(response);var is_paid=false
3window.addEventListener("message",function(event){payment_status=event.data.status;if(payment_status=="paid"){is_paid=true
4deleteCookie('env')
5deleteCookie('invoicedata')
6deleteCookie('modal')
7document.querySelector(".page-main").style.visibility="visible"
8return;}},false);bitpay.onModalWillLeave(function(){if(!is_paid){deleteCookie('env')
9deleteCookie('invoicedata')
10deleteCookie('modal')}});bitpay.showInvoice(response.invoiceID);document.querySelector(".page-main").style.visibility="hidden"}
11function deleteCookie(cname){document.cookie=cname+'=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;';}
12function getCookie(cname){var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1);}
13if(c.indexOf(name)==0){return c.substring(name.length,c.length);}}
14return"";}
15if(window.location.href.indexOf("checkout/onepage/success/")>-1&&getCookie('modal')==1){setTimeout(function(){showModal(getCookie('env'),getCookie('invoicedata'))},750);}
16if(window.location.pathname.indexOf('sales/guest/form')!=-1){if(document.cookie.indexOf('oar_order_id')!==-1){setTimeout(function(){jQuery("#oar-order-id").val(getCookie("oar_order_id"))
17jQuery("#oar-billing-lastname").val(getCookie("oar_billing_lastname"))
18jQuery("#oar_email").val(getCookie("oar_email"))
19deleteCookie("oar_order_id")
20deleteCookie("oar_billing_lastname")
21deleteCookie("oar_email")},1500);}}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.