latrell / alipay Goto Github PK
View Code? Open in Web Editor NEW支付宝SDK在Laravel5的封装。
支付宝SDK在Laravel5的封装。
In the current constructor method the path to the cacert.pem is giving CURL error on Unix:
$this->cacert = getcwd() . '\\cacert.pem
This should be:
$this->cacert = getcwd() . '/cacert.pem
Can you add a setter method for this file?
Hi bro,
Recently I created a laravel 5.1 project under /usr/share/nginx/laravel directory.
As I want to use latrel/alipay, so I run composer require latrell/alipya dev-master and composer install.
After that I didn't find config/latrell-alipay.php or other two config files under config directory, but vendor/latrell/alipay is ok. I don't know why, please help me, thx:)
// 安全检验码,以数字和字母组成的32位字符。
'key' => '',
how to query an order?To make sure that the order has successfully paid.
RT
阿里现在推荐RSA2了呀,https://docs.open.alipay.com/291/106115/
How can I identify the payment request sent by app or browser and call different payment methods ?
如题,如果没有自定义参数可传 怎么知道我是哪个模块发起的支付??
异步的方法都没有调起
楼主好人啊! 这样做支付好简单!官方的SDK 真是晕
$data['_url'] 应该不参加签名
rt
希望能增加退订和查询接口
谢谢
private function paraFilter($para)
{
$para_filter = array();
while ((list ($key, $val) = each($para)) == true) {
if ($key == 'sign' || $key == 'sign_type' || $val == '') {
continue;
} else {
$para_filter[$key] = $para[$key];
}
}
return $para_filter;
}
上述代码
while ((list ($key, $val) = each($para)) == true) {
修改为
foreach ($para as $key => $val) {
兼容性会更好 #32
手机可以支付且手机能收到支付成功通知,但是服务器无法收到异步通知
将加密后的拼接字串进行urldecode发现"¬ify_url"被转为了"¬ify_url"
我把你的代码拷贝出来
将加密后得到sign的参数数组中的notify_url删除,并拼接成url参数字串
因为notify_url不是数组第一个,此时使用createLinkstringUrlencode拼接就会有¬ify_url
然后再用notify_url=url_encode(http://xxxx) . '&' . 刚拼接的url参数字串
生成订单,服务器就收到异步通知了
不知是不是我个人问题,所以不知是不是bug
wap怎么没有同步跳转网址设置?
调用后返回这些参数,要怎么使用?
如何给支付宝移动端的SDK?
_input_charset=utf-8&body=%E6%9D%A5%E4%B9%B0%E5%95%8A%E5%95%8A%E5%95%8A¬ify_url=http%3A%2F%2Fxxx&out_trade_no=pt123122333..................
$parameter = array( 'service' => $this->service, 'partner' => $this->partner, 'payment_type' => $this->payment_type, 'notify_url' => $this->notify_url, 'return_url' => $this->return_url, 'seller_id' => $this->partner, 'out_trade_no' => $this->out_trade_no, 'subject' => $this->subject, 'total_fee' => $this->total_fee, 'body' => $this->body, 'it_b_pay' => $this->it_b_pay, 'show_url' => $this->show_url, 'exter_invoke_ip' => $this->exter_invoke_ip, 'app_pay' => $this->app_pay, '_input_charset' => strtolower($this->_input_charset), );
改成这样后,手机网页端就可以支付了,没有APP会是网页端支付宝,有APP就唤醒
This file on the pay WAP configuration is the problem of reading the WAP WAP should read the configuration, the web side to read the configuration of the web, but the WAP is read the configuration of the web
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.