Help Center

—— 5 minutes to solve basic problems such as novice entry ——

支付宝参数配置

1.登录支付宝开放平台https://open.alipay.com/,进入控制台。

2. 进入控制台下的网页/移动应用,点击创建网页/移动应用

3. 复制支付宝应用APPID 填入Giimall 后台APPID,并点击“提交审核“,一般情况下支付宝会自动审核,如果问题支付宝团队会联系您。

 

4. 点击开发设置借口加签方式(密钥/证书)——设置

5. 点击下载“支付宝密钥生成器”并安装

6. 安装完成以后打开,复制应用私钥填入Giimall后台, 复制应用公钥填入下一步。

7.将复制生成的 应用公钥填写公钥字符 输入框中,即可完成应用公钥的上传。支付将自动生成对应的 支付宝公钥 填入Giimall。

i++) { elements[i].addEventListener( this.SHOP_TYPE() == 'mobile' ? 'touchend' : 'click', function(event){ var target = event.target,current = event.currentTarget; if(current.id == 'gshopmodal') { target = target.localName == 'button' ? target : target.closest('button'); target && target.classList.contains('g-button__default') && self.ga(target,{actionName:'add_to_cart'}); } else if(target.classList.contains('add_to_cart')) { self.ga(target,{actionName:'add_to_cart'}); } } ) } } }, /** * @method sendBuyNow buynow立即购买发送GA代码 */ sendBuyNow:function(){ var buyNow = document.querySelectorAll('[data-functionallink="buyNow"]'); buyNow.length && this.sendData(buyNow,{actionName:'buy_now'}); }, /** * @method sendShopCart 查看购物车发送GA */ sendShopCart:function(){ var checkButtons = document.querySelectorAll('.Checkout_view'); checkButtons.length && this.sendData(checkButtons,{actionName:'view_cart'}); }, /** *@method load 订单详情与提交订单页面加载完毕发送GA */ load:function(options){ var path = window.location.pathname; if(/settlement|order-details?|products/.test(path)) { this.handler(); //是否为商品详情页 if(path.indexOf('products') == -1) { //是否存在价格数据,存在则匹配出价格 if(options && typeof options.value == 'string'){ options.value = parseInt(options.value.match(/[.,\d]+$/)[0]); } if(options && /order-details?/.test(path)) { var trackOrders = window.Public.cookie.getItem("GTO-" + options.orderId),isTrack = true; trackOrders && trackOrders.indexOf("ga") != -1 || document.referrer == '' ? isTrack = false : window.Public.cookie.addItem("GTO-" + options.orderId,(trackOrders ? trackOrders +',' : '') + 'ga',{path:'/',endTime:60*60*24*30}); isTrack && gtag('event','purchase', {currency:options.currency,value:options.value,items: options.contents}); } else{ options && gtag('event','begin_checkout', {currency:options.currency,value:options.value,items: options.contents}); } } } }, handler:function(){ if(window.FBQ == undefined) { var self = this; window.FBQ = { load:window.TIKTOK || window.SNAPCHAT ? function(options){ window.TIKTOK && window.TIKTOK.load(options); window.SNAPCHAT && window.SNAPCHAT.load(options); self.load(options); } : this.load.bind(this) } } } } //ga初始化 GA.init();