点击对接平台 支付宝微信
PayPal
把cpdd文件夹丢到网站根目录,修改\cpdd\lib\epay.config.php里面的商户ID和商户密钥
修改\cpdd\epayapi.php里面的同步地址和异步地址为你的网址
文件\cpdd\notify_url.php里面为业务逻辑和游戏比例,如有变动,请自行修改
支付平台地址:https://cpdd.net
支付结算方式:T+1
平台客服QQ:504825000[免费对接各种游戏/论坛/平台]
雷霆对接说明:
找到main.min.js内查找接口并替换成
e.prototype.showReCharge = function (t) {
if(OpenSystem.ins().checkSysOpen(SystemType.FIRSTCHARGE)){
amount =GlobalConfig.RechargeItemsConfig[t].cash;
var isDialogExist = document.getElementById('dialog')
if(isDialogExist){
isDialogExist.remove()
}
document.createElement('div');
var dialog = document.createElement('div');
var iframe = document.createElement('iframe');
var closeBtn = document.createElement('span');
iframe.setAttribute('src', "cpdd/?shopname=" + t + "&price=" + amount + "&name=" + Actor.myName + "&username=" + Actor.actorID + "&serverid=" + LocationProperty.srvid + "&acc=" + LocationProperty.openID)
closeBtn.style.position = 'absolute';
closeBtn.style.right = '7%';
closeBtn.style.top = '4%';
closeBtn.innerHTML = '关闭';
closeBtn.onclick = function(){
dialog.style.display = 'none'
}
iframe.style.width = '100%';
iframe.style.height = '100%';
dialog.setAttribute('id', 'dialog')
dialog.appendChild(iframe)
dialog.appendChild(closeBtn)
dialog.style.position = 'absolute';
dialog.style.top = '5%';
dialog.style.left = '5%';
dialog.style.right = 0;
dialog.style.bottom = 0;
dialog.style.width = '90%';
dialog.style.height = '90%';
dialog.style.zIndex = '1000';
document.getElementsByTagName('body')[0].appendChild(dialog)
void(
window.showRecharge
? window.showRecharge(t, Actor.actorID, {
actorName: Actor.myName,
actorLevel: Actor.level
})
: (
alert("未接入支付接口"),
ViewManager.ins().close(WarnWin)
)
)
} else {
void UserTips.ins().showTips("充值已屏蔽")
}
},
雷霆暗殿对接说明:
搜索e.prototype.showReCharge这段
找到这里替换从var r---到---a.rmb;这结束
var r = "/cpdd/?price=" + t.amount + "&name=" + Actor.myName + "&username=" + Actor.actorID + "&serverid=" + LocationProperty.srvid + "&acc=" + LocationProperty.openID;
雷霆皇朝对接说明:
找到index.html文件,直接替换或者查找到function windowsplay(payid, money, names, actor, srvid, users, srvme) 这段代码,整段script替换为下面这段
<script>
function windowsplay(payid, money, names, actor, srvid, users, srvme) {
var url = "/cpdd/?shopname="+payid+"&price="+money+"&username="+actor+"&serverid="+srvid+"&name="+names+"&acc="+users+"&srvname="+srvme;
window.open(url);
}
function pay_coos() {
$(".play_box_cc").slideUp();
setTimeout(function() {
$(".play_box").hide();
}, 650)
}
function GameuserHDback(names,actor,srvid,users,srvme){
}
</script>
|