PayKun Payment Gateway Integration In PHP

Server Integration for PHP

Integrate the PayKun Payment Gateway in PHP and collect online payments. You can provide multiple payment options to your customers and the great checkout experience that will make them pay on the spot, saving the dropouts. Access free PHP PayKun plugin and free integration services now!

Requirements for PHP Checkout

  • Merchant ID
  • Access Token Key
  • API Secret Key
  • PHP v5.3 or higher

Installation

Installation can be done using the following composer code or the required zip file. After that include **Payment.php** in your application and you can use the API as usual.

Composer

If your project uses composer, run the below command

composer require paykun/checkout

ZIP File download

  1. You can download the zip file from below given link if you are not using the composer code PayKun_PHP_zip file
  2. Unzip the given file
  3. Include Payment.php, Validator.php & Crypto.php in your project. 

[ Note: If you are using any framework or you have autoloaded set up in your project then you don’t have to include these files manually]

payment gateway in php

TEST (Sandbox) MODE GENERATING / API ENCRYPTION KEY GUIDE

In order to activate the test Mode, first, follow the below-given steps for generating test mode credentials.

  • Click on your profile picture then after select test mode.
  • And click on your active sandbox account.
  • Copy your password.
  • Click on the sandbox login.
  • And then you will be redirected to the Sandbox Mode, then after you may generate your credentials as it is in live mode.
  • Copy your Merchant ID which you will get by clicking on your profile picture 
  • Then go to the Settings Tab.
  • Go to the Security Option.
  • Click on Generate API Key and download your Access Token and Encryption Key(API Secret Key).

If you have generated API key before then you will see the date of the API key generate, since you will not be able to retrieve the old API key (For security reasons) we have provided the re-generate option, so you can re-generate API key in case you have lost the old one.

Note: Once you re-generate the API key your old API key will stop working immediately. So be cautious while using this option.

License: The PayKun PHP SDK is released under the MIT License.

Note – We provide API for fetching order detail, due to security concern, and we call webhook for order detail.

You May Also Like

About the Author: PayKun Payment Gateway