pixwell-dev/laravel-adyen-checkoutapi

0.2.2 2017-10-13 09:35 UTC

README

Latest Version on Packagist Build Status SensioLabsInsight Quality Score Total Downloads

This is a laravel bridge for Adyen Checkout api. Support only two methods setup and verify. With additional check for price after verify call, supported with redis.

Installation

You can install the package via composer:

composer require pixwell-dev/laravel-adyen-checkoutapi

Usage

Setup method

$setupRequest = (new SetupRequest('client_sdk_token', 'channel'))
				->setAmount($request->amount);
				
$response = app(AdyenCheckoutApi::class)->setup($setupRequest);
Additional methods
  • setShopperReference(''): Internal Shopper reference.
  • setCountryCode(''): A valid value is an ISO 2-character country code.
  • setShopperLocale(''):The shopper language: Example: nl_NL or en_GB.
  • setReturnUrl(''): URL/app that will be opened in case a redirect payment method is used.
  • setReference(''): A unique reference you provide to the transaction, will be used for updates to the payment like refunds.
  • setSessionValidity(OneSignalButton $button): The payment deadline; the payment needs to be processed within the specified time value: Format: ISO 8601;

Verify method

$response = app(AdyenCheckoutApi::class)->verify($payload, $price);

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email developer@pixwell.sk instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.