支付宝接口

$pay=new alipay();

$message=array('gsid','pay','body','price','orderid');

$redirecturl=$pay->get_code($message);       alipay的页面

 

$redirecturl=$gateway.$parameter.sign=.sign_type=

-------------------------------------------------------------------

 

https://www.alipay.com/cooperate/gateway.do?

_input_charset=utf-8

&body=$body

&notify_url=http://localhost/alipay_notify_url.php

&out_trade_no=$orderid

&partner=2088201301535952

&payment_type=1

&return_url=http://localhost/alipay_return_url.php

&[email protected]

&service=create_direct_pay_by_user

&show_url=$show_url

&subject=$body

&total_fee=$price

&sign=o5705enqmx81306o7l459tspn6eyydnx

&sign_type=MD5

-------------------------------------------------------------------

website->alipayto()->alipay

alipay->notify_url->website->success->alipay

         ->return_url->customer

return_url   //同步通知 GET参数 和notify_url类似

notify_url   //异步通知 接受alipay POST过来的参数 不可见 处理update DB 执行完成仅echo success给alipay

action=url 需要urlencode处理 或者通过form.submit传递

相关推荐