Download the PHP package mantraideas/laravel-connectips without Composer
On this page you can find all versions of the php package mantraideas/laravel-connectips. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mantraideas/laravel-connectips
More information about mantraideas/laravel-connectips
Files in mantraideas/laravel-connectips
Package laravel-connectips
Short Description Laravel Connectips Payment Gateway Integration
License MIT
Informations about the package laravel-connectips
Laravel Connectips
The mantraideas/laravel-connectips
allows you to integrate ConnectIps payment on your Laravel Application.
Quick Start
Install Using Composer
Publish Config File
This will create a config/connectips.php
file in your Laravel application. If you want to change the default configuration, you can do so in this file.
Set Environment Variables
You can set the environment variables in your .env
file:
Here is the description of each environment variable:
CONNECTIPS_MERCHANT_ID
: Your Connectips Merchant ID. (Provided by Connectips)CONNECTIPS_APP_ID
: Your Connectips App ID. (Provided by Connectips)CONNECTIPS_PASSWORD
: Your Connectips Password. (Provided by Connectips)CONNECTIPS_APP_NAME
: Your Connectips App Name. (Provided by Connectips)CONNECTIPS_SUCCESS_URL
: The URL to redirect to after a successful payment.CONNECTIPS_FAILURE_URL
: The URL to redirect to after a failed/canceled payment.CONNECTIPS_PEM_PATH
: The path to the private key file. (File provided by Connectips) Note: It must be insidestorage
directory.CONNECTIPS_URL
: The URL to the Connectips API. (Default ishttps://uat.connectips.com
for testing.)
Usage
Create Payment Form
You can create a payment form using the transaction details generated above. Here is an example of how to create a payment form in your Blade view:
After this user will be redirected to connectips payment webpage and then after the action user will be redirected to Success or Fail callback url based on the payment status. Then you can use the following code to handle the success and failure callback.
Validate Payment Status
Additionally, you can validate payment status using the validatePayment
method. This method will check the payment status and return a boolean value.
You will get from the response of Connectips API to your success and failed payment callback url. You can use the following code to validate the payment status.
By using the you can check your payments table to get amount and use this method.
This will return transaction status as follows.
Get Transaction Details
You can also get transaction details using the getTransactionDetails
method. This method will return the transaction details as an array.
This will return transaction details as follows.
License
Author
Support
For support, email dipeshkhanal79[at]gmail[dot]com.