作者 lihan
1 个管道 的构建 通过 耗费 0 秒

支付宝

... ... @@ -170,11 +170,12 @@ class IndexController extends HomeBaseController
'merchant_private_key' => config('private_key'),
'alipay_public_key' => config('alipay_public_key'),
'charset' => "UTF-8",
'sign_type' => "RSA1"
'sign_type' => "RSA"
];
$alipay = new \AlipayTradeService($alipay_config);
$builder = [
'oid' => 2
'out_trade_no' => 20181212201251,
'total_amount' => 0.01
];
$return = $alipay->wapPay($builder, '', '');
print_r($return);
... ...