2017 © Pedro Peláez
 

library veritrans

Make a credit card payment via Veritrans Air-Direct API

image

yumaeda/veritrans

Make a credit card payment via Veritrans Air-Direct API

  • Saturday, April 28, 2018
  • by yumaeda
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

This is PHP wrapper/library for veritrans Air-Direct API., (*1)

  • This Component is not an official one and only supports Tokens API and Charges API.
  • This API is experimental and may be removed anytime without any notice.
  • Please do not ask any questions about this API to veritrans.
  • The author shall not be held responsible or liable, under any circumstances, for any damages resulting from using this component.

Installation

  1. Add this require line to your composer.json:
{
    "require": {
        "yumaeda/veritrans": "1.0.*"
    }
}
  1. composer install on your terminal.

How to Use

<?php
use Yumaeda\Payment\Veritrans\Veritrans;
use Yumaeda\Payment\Veritrans\CreditCard;

$order_id     = <Order ID>;     // Unique order ID for your veritrans
$client_key   = <ClientKey>;    // Your veritrans client key
$server_key   = <ServerKey>;    // Your veritrans server key
$total        = <Total in JPY>; // e.g. 9999
$card_number  = <CardNumber>;   // e.g. '111111111111111'
$cvv          = <CVV>;          // e.g. '1234'
$expire_month = <Exp Month>;    // e.g. 9
$expire_year  = <Exp Year>;     // e.g. 2022

$veritrans = new Veritrans($client_key, $server_key);
$credit_card = new CreditCard($card_number, $expire_month, $expire_year, $cvv);

$veritrans->setCreditCard($credit_card);
$veritrans->charge($order_id, $total, true);

Testing

Not available, (*2)

Contributing

Please send a pull request., (*3)

Support

Please send an email to yumaeda@gmail.com., (*4)

Author

Yukitaka Maeda, (*5)

Software License

MIT, (*6)

The Versions

28/04 2018

dev-master

9999999-dev https://github.com/yumaeda/veritrans

Make a credit card payment via Veritrans Air-Direct API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

payment veritrans air-direct

28/04 2018

v1.0.2

1.0.2.0 https://github.com/yumaeda/veritrans

Make a credit card payment via Veritrans Air-Direct API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

payment veritrans air-direct

28/04 2018

v1.0.1

1.0.1.0 https://github.com/yumaeda/veritrans

Make a credit card payment via Veritrans Air-Direct API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

payment veritrans air-direct

28/04 2018

v1.0.0

1.0.0.0 https://github.com/yumaeda/veritrans

Make a credit card payment via Veritrans Air-Direct API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

payment veritrans air-direct