o2one/knet_payment_gateway

This package is provides an expressive, fluent interface to Knet's payment services.

dev-main 2020-11-30 22:11 UTC

This package is auto-updated.

Last update: 2024-04-29 04:27:48 UTC


README

This package used to integrate with the new Knet payment gateway.

Requirements

PHP Laravel Package
7.3+ 8.x v1.3.0
7.2.5+ 7.x v1.2.0
<7.2.5 6.x v1.1.0
<7.1 5.x v1.0.*

Installation

  1. Install the package by running this command in your terminal/cmd:
composer require o2one/knet-payment-gateway
  1. Create this package's Knet to the tap option of your gateway in config/knet.php:

Optionally, you can import config file by running this command in your terminal/cmd:

php artisan vendor:publish --tag=knet-config

Change Environment

you can change your environment from local to production in case you want to make sure that everything is working fine, to do that change .env file like this

APP_ENV=local // or production

KNET_TRANSPORT_ID=
KNET_TRANSPORT_PASSWORD=
KNET_RESOURCE_KEY=
KNET_DEBUG=true //or false in production

Test cards

Card Number Expiry Date PIN Status
8888880000000001 09/21 1234 CAPTURED
8888880000000002 05/21 1234 NOT CAPTURED

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Special Thanks to