实现的调用福禄API的SDK。
福禄开放平台地址:https://open.fulu.com/
composer require songjian/fulusdk
Fulu类实例化时app_key和app_secret参数传任意值,实例化后调用sandbox(true)
方法。
$fulu = new \Fulu\Fulu();
$fulu->sandbox(true);
$r = $fulu->orderMobileAdd('15972368779', 100, [CUSTOMER_ORDER_NO]);
vendor/bin/phpunit test/
$fulu = new \Fulu\Fulu([APP_KEY], [APP_SECRET]);
$r = $fulu->orderMobileAdd('15972368779', 100, [CUSTOMER_ORDER_NO]);
$fulu = new \Fulu\Fulu([APP_KEY], [APP_SECRET]);
$r = $fulu->orderInfoGet([CUSTOMER_ORDER_NO]);