HomeAway Payment Island Alternate Tokenization service API wrapper

0.1.0 2016-12-30 04:06 UTC

This package is auto-updated.

Last update: 2024-10-27 22:45:50 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

This is a PHP library to make it easy to implement the HAPI HAT (HomeAway Payment Island Alternate Tokenization) service provided by HomeAway to remove HomeAway and any other data or service provider from the PCI scope except the service that is actively accepting credit card data from the guest. More information can be found on the HAPI Reference Page.

HAPI ONLY supports TLS v1.2 SSL encryption and this library expects PHP to auto-negotiate this properly. The Travis-CI tests for HHVM failed to do this properly so HHVM tests have been removed.

Install

Via Composer

$ composer require gueststream/hapi

Usage

Invoke the Tokenizer using the HAT Client ID and API Key provided by HomeAway, then pass a credit card number to the tokenize() method to request and receive the token for that credit card number.

$hatClientId = "a7209c11-32e5-4c55-bff5-617607d85e8f";
$hatApiKey = "c5de60cfccd04f84a502bfb9c63d2f28";
$creditCardNumber = "4111111111111111";

$tokenizer = new Gueststream\HomeAway\Tokenizer($hatClientId, $hatApiKey);
$tokenizedCardNumber = $tokenizer->tokenize($creditCardNumber);

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email support@gueststream.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.