Vpay-Collection / VPay

个人第四方收款方案

Home Page:https://pay.ankio.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🚀 Vpay 服务端

⚠️ 警告

  • 手机二维码监听收款是异地收款,收款频率高可能导致风控;
  • 云端监听收款风险同上;

按需选择

  1. master分支版本为4.0系列全面重构的版本,仅支持支付宝当面付
  2. dev分支版本为3.0系列稳定版本,仅支持支付宝当面付
  3. 旧版稳定版请使用2.0系列版本,配合官方App使用,支持手机端二维码监听收款。

简介

Vpay ——一款个人收款解决方案,使个人开发者能够安全高效地处理在线交易。

安装指南

服务端安装

以下两种方案三选一

一、宝塔面板一键部署

  1. 导入项目到宝塔面板 img.png
  2. 点击一键部署,填入域名后点提交即可 img_1.png

二、手动部署

  1. 导入项目到网站文件夹下
  2. 配置运行目录为/public
  3. 配置伪静态
if ($uri ~* "^(.*)\.php$") {
    rewrite ^(.*) /cleanphp/bootstrap.php last;
}

location @cleanphp {
    rewrite ^ /cleanphp/bootstrap.php last;
}
location ~* ^\/@static(.*)$ {
    if_modified_since before;
       expires 30d;
        access_log off;
        add_header Cache-Control "public";

    try_files /app/public$1 /app/public/$1 /app/public$1/index.html /app/public/index.html =404 last;
}
location ~* ^\/@(.*)$ {
  if_modified_since before;
       expires 30d;
        access_log off;
        add_header Cache-Control "public";
    try_files /app/public$1 /app/public/$1 /app/public$1/index.html /app/public/$1/index.html  /app/public/index.html last;
}


location / {
 if_modified_since before;
       expires 30d;
        access_log off;
        add_header Cache-Control "public";
     try_files /app/public/$uri  @cleanphp;
}



  1. 如果使用宝塔面板部署,请务必删除宝塔默认配置的以下配置文件
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
        expires      30d;
        error_log /dev/null;
        access_log /dev/null;
    }

    location ~ .*\.(js|css)?$
    {
        expires      12h;
        error_log /dev/null;
        access_log /dev/null;
    }

服务端配置

  1. 申请支付宝当面付
  • 【扫码支付】-【自研】,根据页面提示的接入准备完成当面付接入
  1. 填写当面付信息
  2. 配置邮件通知 img_4.png

接入Vpay支付

参考vpay-sdk进行接入

文档

阅读文档

开源协议

GPL V3

About

个人第四方收款方案

https://pay.ankio.net

License:GNU General Public License v3.0


Languages

Language:JavaScript 36.0%Language:PHP 35.6%Language:HTML 24.8%Language:CSS 3.1%Language:Shell 0.4%Language:Makefile 0.0%