支付组件

dever 734abe6d72 Merge branch 'master' of http://git.dever.cc:3000/dever-package/pay 3 months ago
config 430075f713 edit 1 year ago
database 8719da6e74 edit 3 months ago
lib 734abe6d72 Merge branch 'master' of http://git.dever.cc:3000/dever-package/pay 3 months ago
sdk 8719da6e74 edit 3 months ago
src 9b467fba2d edit 1 year ago
LICENSE a2d123cf72 edit 1 year ago
README.md 881cda15d9 edit 1 year ago
index.php 44418d05a7 edit 1 year ago

README.md

支付组件

使用方法:

//下单

//page页面下单
$type = 1;
//$param参数
$param = array
(
	'account_id' => '1',
	'uid' => '1',
	'username' => 'test',
	'name' => '1',
	'cash' => '1',
	'refer' => '1',
	'order_id' => '1',
	'openid' => '1',
);

$result = Dever::load('pay/api')->get(1, $param);

//测试地址
http://192.168.33.10/grow/pay/?api.get?account_id=1&uid=10&username=test&product_id=1&name=test&cash=1&refer=2&json=1


//notify地址,需要做下rewrite 如nginx:
if ( $request_uri ~* /pay/notify ) {
   rewrite ^/pay/notify/([0-9+]) /pay/index.php?l=api.notify&account_id=$1 last;
}