2017 © Pedro Peláez
 

library cashoutcard

Astropay Cashout-cash integration package

image

astropay/cashoutcard

Astropay Cashout-cash integration package

  • Friday, August 26, 2016
  • by mauriciovander
  • Repository
  • 8 Watchers
  • 0 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

AstroPay cashoutcard API integration

Read full documentation at https://developers.astropaycard.com/, (*1)

Example, (*2)

composer require astropay/cashoutcard dev-master

copy code reference in public/index.php, (*3)

<?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());
}

The Versions

26/08 2016

dev-master

9999999-dev https://github.com/astropay/cashoutcard

Astropay Cashout-cash integration package

  Sources   Download

MIT

The Requires