xhat / payjs Goto Github PK
View Code? Open in Web Editor NEW基于 PAYJS 微信支付个人接口开发的 Package,可直接用于生产环境
Home Page: https://payjs.cn
基于 PAYJS 微信支付个人接口开发的 Package,可直接用于生产环境
Home Page: https://payjs.cn
我想点击一下,看怎么申请也找不到。。。。。
// 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;
}
我申请了使用payjs,请尽快审核,邮箱:[email protected]
// 构造订单基础信息
$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
改为默认参数.// 异步通知接收
public function notify($data = $_POST)
{
// $data = $_POST; // 可否把 $_POST 改为默认参数
if ($this->checkSign($data) === true) {
return $data;
} else {
return '验签失败';
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.