samwaters/litlephp

dev-master 2015-11-03 16:00 UTC

This package is not auto-updated.

Last update: 2024-09-28 18:00:05 UTC


README

Litle API的PHP客户端

##支持的API调用

  • Preauth

##要求

  • PHP 5.3+
  • Composer

##包含的库

  • phpseclib (dev-master)

##拉取库 ###使用Composer require samwaters/litlephp: dev-master ###不使用Composer include "vendor/autoload.php";

##使用 请参阅Examples/Preauth.php以获取详细示例
$client = new \LitlePHP\LitleClient("", "", 0, "test", "sandbox");
$card = new \LitlePHP\Structs\Card("5454545454545454", "12", "18", "123");
$billing = new \LitlePHP\Structs\Billing("A Developer", "1 Cherry Tree Lane", "London", "London", "LO123MP", "GB");
$merchant = new \LitlePHP\Structs\MerchantData("", "TEST");
$response = $client->AuthCard($card, $billing, $merchant, "1.00");