使用thenbsp/wechat微信支付后无法执行notify_url的问题

WBOY
Release: 2016-06-06 20:07:40
Original
1333 people have browsed it

环境:
laravel 4.2
thenbsp/wechat 1.*
php

我想在web页面上实现微信支付,如下:

options = { ...,

<code>    notify_url: URL::to('payment'),
    }
    </code>
Copy after login
Copy after login

生成支付二维码和扫码支付都成功,没问题。

但是: 不能执行到notify_url里?

URL::to('payment')是这样定义的:
Route::get('payment','..Controller@payment'); (不知道是应该用get还是post ??)
方法内容:

<code>$request =  new NotifyRequest();
...
...
内容没有改变,直接使用example中的代码。

</code>
Copy after login
Copy after login

这个地址可以直接打开,内容如下(不确定是否正确):

This XML file does not appear to have any style information associated with it. The document tree is shown below.
FAIL
Invalid Request

请大神们多多指点啊,郁闷好几天了都,谢谢!!

回复内容:

环境:
laravel 4.2
thenbsp/wechat 1.*
php

我想在web页面上实现微信支付,如下:

options = { ...,

<code>    notify_url: URL::to('payment'),
    }
    </code>
Copy after login
Copy after login

生成支付二维码和扫码支付都成功,没问题。

但是: 不能执行到notify_url里?

URL::to('payment')是这样定义的:
Route::get('payment','..Controller@payment'); (不知道是应该用get还是post ??)
方法内容:

<code>$request =  new NotifyRequest();
...
...
内容没有改变,直接使用example中的代码。

</code>
Copy after login
Copy after login

这个地址可以直接打开,内容如下(不确定是否正确):

This XML file does not appear to have any style information associated with it. The document tree is shown below.
FAIL
Invalid Request

请大神们多多指点啊,郁闷好几天了都,谢谢!!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template