gueststream / hapi
HomeAway Payment Island Alternate Tokenization service API wrapper
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ~4.0||~5.0
- squizlabs/php_codesniffer: ^2.3
This package is auto-updated.
Last update: 2024-11-27 23:02:42 UTC
README
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.