Skip to content

songjian/fulusdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

福禄开放平台SDK

实现的调用福禄API的SDK。

福禄开放平台地址:https://open.fulu.com/

使用Composer安装

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]);

运行PHPUnit测试

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]);

About

实现的调用福禄API的SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages