This project is an example implementation of the auto card type detection provided by the PAYONE Client API.
The project follows our official documentation how a modern credt card checkout should be implemented.
- PHP Version 7.2 or above
- Composer Package Manager
- PAYONE API Credentials
Clone or download this repository to your desired location.
$ git clone https://github.com/PAYONE-GmbH/auto-credit-card-detection-example.git
$ cd auto-credit-card-detection-example
Install project dependencies via Composer:
$ composer install
Copy .env.example
to .env
and configure your
PAYONE API credentials as well as your supported
credit card types.
Run a webserver with document root set to the public
directory. You can make use of the PHP built-in
webserver for this:
$ cd public
$ php -S 127.0.0.1:8080