Git Product home page Git Product logo

alipay's Issues

wap 参数错误,请修改

$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就唤醒

Incorrect path for the cacert.pem on Unix

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?

APP无法接收异步通知问题

手机可以支付且手机能收到支付成功通知,但是服务器无法收到异步通知
将加密后的拼接字串进行urldecode发现"&notify_url"被转为了"¬ify_url"

我把你的代码拷贝出来
将加密后得到sign的参数数组中的notify_url删除,并拼接成url参数字串
因为notify_url不是数组第一个,此时使用createLinkstringUrlencode拼接就会有&notify_url
然后再用notify_url=url_encode(http://xxxx) . '&' . 刚拼接的url参数字串
生成订单,服务器就收到异步通知了
不知是不是我个人问题,所以不知是不是bug

>=php7.2 each()参数废除导致报错

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

alipay composer install error: config files didn't exist under config directory.

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:)

楼主好人啊!

楼主好人啊! 这样做支付好简单!官方的SDK 真是晕

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.