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.
Via Composer
$ composer require gueststream/hapiInvoke 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);$ composer testPlease see CONTRIBUTING for details.
If you discover any security related issues, please email support@gueststream.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.