定制 astropay/cashoutcard 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 7
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-24