This example project will give you a working project that use Cardinity payments. Use it for reference in development.
This sample code is provided for illustrative purposes only. Any use of this repository or any of its code in a production environment is highly discouraged.
- Download the files
- Navigate to directory location
- Run composer
php composer.phar install
- Rename file
.env.example
into.env
and fill the Cardinity API credentials - Add your Cardinity API keys to
.env
file - Start internal PHP server
php -S localhost:8000 -t public
- Launch browser with url
http://localhost:8000
Testing 3D-Secure flow involves redirecting purchase flow to an external website and redirecting back. Therefore, this step requires a public address and does not allow localhost
addresses. To test full 3D-Secure flow, this application requires a public IP, which can be obtained either via hosting this project publicly or tunneling your local setup using ngrok or similar tunneling software.
If you wish to run this project using Docker, take the following steps:
- Download the files
- Navigate to directory location
- Rename file
.env.example
into.env
and fill the Cardinity API credentials - Add your Cardinity API keys to
.env
file - Run
docker-compose up -d
- Install the Composer dependencies:
docker-compose run php composer install
- Launch browser with url
http://localhost:8000
Official Cardinity API documentation can be found here
Feel free to contact us regarding any problems that occurred during integration via info@cardinity.com. We will be more than happy to help.
Cardinity is a licensed payment institution, active in the European Union, registered on VISA Europe and MasterCard International associations to provide e-commerce credit card processing services for online merchants. We operate not only as a payment gateway but also as an acquiring Bank. With over 10 years of experience in providing reliable online payment services, we continue to grow and improve as a perfect payment service solution for your businesses. Cardinity is certified as PCI-DSS level 1 payment service provider and always assures a secure environment for transactions. We assure a safe and cost-effective, all-in-one online payment solution for e-commerce businesses and sole proprietorships.
- Fast application and boarding procedure.
- Global payments - accept payments in major currencies with credit and debit cards from customers all around the world.
- Recurring billing for subscription or membership based sales.
- One-click payments - let your customers purchase with a single click.
- Mobile payments. Purchases made anywhere on any mobile device.
- Payment gateway and free merchant account.
- PCI DSS level 1 compliance and assured security with our enhanced protection measures.
- Simple and transparent pricing model. Only pay per transaction and receive all the features for free.
Click here to sign-up and start accepting credit and debit card payments on your website or here to contact us
payment gateway, credit card payment, online payment, credit card processing, online payment gateway, cardinity client php example.