Adyen / adyen-secured-fields-sample-code

MIT License
9 stars 20 forks source link

Secured Fields Component PHP server example

This repository is for demo purposes only

This PHP server example is intended to help developers to quickly get up and running with our SecuredFields (aka CustomCard) Component v4.x.
Always ask a back-end developer to create an implementation of this product.

Requirements

To run this Secured Fields example, edit the following variables in the config/authentication.ini file:

$merchantAccount= "YOUR MERCHANT ACCOUNT".
$checkoutAPIkey= "YOUR CHECKOUT API KEY".
$clientKey= "YOUR CHECKOUT CLIENT KEY".

These variables can be found in our customer area. For more information visit our getting started guide.
Also of interest:
Manage you account structure
API credentials.
Client-side authentication.

Installation

Deploying this example to Heroku

Use this shortcut to deploy to Heroku:

Deploy

Alternatively, clone this repository and deploy it to your own PHP server

Documentation

SecuredFields 4.x Component

https://docs.adyen.com/payment-methods/cards/custom-card-integration

3DS 2.0 Example

To see an example of 3DS 2.0 in action run the sample code with the relevant (3DS2) test card numbers, test expiry date and security code credentials.
See: https://docs.adyen.com/classic-integration/3d-secure/native-3ds2/browser-based-integration#testing-3d-secure-2

Migration from CheckoutSecuredFields 1.x

See Migration.md (https://github.com/Adyen/adyen-secured-fields-sample-code/blob/main/Migration.md)

Migration from CheckoutSecuredFields 2.x or 3.x

See: https://docs.adyen.com/online-payments/migrate-to-web-4-0-0

License

This repository is open source and available under the MIT license. For more information, see the LICENSE file.