astropay/cashoutcard
Composer 安装命令:
composer require astropay/cashoutcard
包简介
Astropay Cashout-cash integration package
README 文档
README
Read full documentation at https://developers.astropaycard.com/
Example
composer require astropay/cashoutcard dev-master
copy code reference in public/index.php
<?php include 'vendor/autoload.php'; $login = 'merchant_x_login'; $trans_key = 'merchant_x_trans_key'; $secret = 'merchant_secret'; $api = new \Astropay\CashoutCard(Astropay\Constants::ENV_SANDBOX); $api->setCredentials($login, $trans_key, $secret); $api->setAmount(100); $api->setCurrency('USD'); $api->setEmail('test@astropaycard.com'); $api->setName('Test recipient'); $api->setDocument('8976fsdf1234'); if($api->sendCard()){ echo urldecode($api->getMessage()); echo '<br/>'.$api->getAuthCode(); } else { echo urldecode($api->getMessage()); }
统计信息
- 总下载量: 68
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-24