Giter Club home page Giter Club logo

coinbaseforzfaka's Introduction

CoinbaseForZfaka

支持收取BTC,BCH,DAI,dogocoin,ETH,LTC,USDC

安装

  • 按照https://github.com/zlkbdotnet/zfaka 要求安装zfaka,建议使用页面中提示的宝塔教程进行安装,省时省力

  • 注册Coinbase商家版 https://commerce.coinbase.com/signup

  • 进入Coinbase商家版面板设置页面 https://commerce.coinbase.com/dashboard

  • 找到 Creat an Api Key,点击一下,创建一个Api Key.

  • 找到Webhook Subscriptions ,点击Add a endpoint,填入自己的异步回调地址: https://你的卡网域名/product/notify/?paymethod=coinpay

  • 点击回调地址 右边的Details,在弹出的窗口中 Events--->Edit, 在所有Events中仅仅勾选 charge:confirmed,然后点击保存

  • 找到Webhook subscriptions 下的Show shared secret,点击它,保存下其中的共享密钥

  • 将文件夹 coinpay 解压到网站目录application/library/Pay文件夹中,此时在Pay文件夹中会多出一个文件夹,名字分别为:coinpay

  • 将文件 coinpay.html 解压到网站目录application\modules\Admin\views\payment\tpl文件夹中 (注意,如果你更改过后台路径,请把这段目录地址中的Admin替换成你的自己的地址)

  • 将coinbase.png 拷贝到网站目录/public/res/images/pay中

  • 修改数据库,在faka数据库中运行下面的sql语句,建议使用宝塔环境的phpmyadmin软件进行修改,省时省力

INSERT INTO `t_payment` (`payment`, `payname`, `payimage`, `alias`, `sign_type`, `app_id`, `app_secret`, `ali_public_key`, `rsa_private_key`, `configure3`, `configure4`, `overtime`, `active`) VALUES
('CoinPay', 'CoinPay', '/res/images/pay/coinbase.png', 'coinpay', 'MD5', '', '', '', '', '', '', 6000, 0);
  • 登录zfaka的后台,依次点击:设置中心->配置中心,在第三页修改参数“weburl”的值为你自己的网站域名url(必须修改,否则无法回调)

  • 依次点击:设置中心->支付设置,修改编辑“CoinPay”支付渠道,将你之前创建的Api Key通信密钥填入API密钥进去,shared secret填入共享密钥,设置自己的需要的费率,选中激活状态,点击确认修改

  • 按照zfaka的后台逻辑,自行添加商品,自行测试

付费服务

如果你不会设置,可以联系我QQ583648414(或者414981146),提供设置服务😁 80元一次.

赞助

如果您有经济条件,您可以赞助本项目的开发(下方收款码),如果您不想赞助,也请您点击上面的Star给一个星星,也是对我莫大的认同,感谢各位的支持。

微信赞助支付宝赞助

感谢

coinbaseforzfaka's People

Contributors

huangfengye avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.