GithubHelp home page GithubHelp logo

xhat / payjs Goto Github PK

View Code? Open in Web Editor NEW
74.0 2.0 11.0 12 KB

基于 PAYJS 微信支付个人接口开发的 Package,可直接用于生产环境

Home Page: https://payjs.cn

PHP 100.00%
payjs wechat payment wechatpay wepay alipay jsapi payjs-package

payjs's Issues

异步回调问题

  • 问题: swoole_server 中对全局变量做了严格的处理, 可否把 $_POST 改为默认参数.
// 异步通知接收
public function notify($data = $_POST)
{
    // $data = $_POST; // 可否把 $_POST 改为默认参数
    if ($this->checkSign($data) === true) {
        return $data;
    } else {
        return '验签失败';
    }
}

文字描述错误

// 构造订单基础信息
$data = [
    'body' => '订单测试',                        // 订单标题
    'total_fee' => 2,                           // 订单标题  这里应该为 订单金额
    'out_trade_no' => time(),                   // 订单号
    'attach' => 'test_order_attach',            // 订单附加信息(可选参数)
    'notify_url' => 'https://www.baidu.com',    // 异步通知地址(可选参数)
];

$result = $payjs->native($data);
print_r($result);

这里少了一个post,可能

// JSAPI 模式
public function jsapi(array $data)
{
$this->url = $this->api_url_jsapi;
$data = $this->sign($data);
$url = $this->url . '?' . http_build_query($data);
return $url;
}

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.