Giter Club home page Giter Club logo

laravel9-shurjopay-v2's Introduction

image

ShurjoPay

Shurjopay laravel integration steps

Prerequisite

To integrate ShurjoPay you need few credentials to access shurjopay:

:param prefix: Any string not more than 5 characters. It distinguishes the stores of a merchant.
:param currency: ISO format,(only BDT and USD are allowed).
:param return_url: Merchant should provide a GET Method return url to verify users initiated transaction status. 
:param cancel_url: Merchant should provide a cancel url to redirect the user if he/she cancels the transaction in midway. 
:param client_ip: User's ip
:param username: Merchant Username provided by shurjopay.
:param password: Merchant Password provided by shurjopay.
:param post_address: Live shurjopay version 2 URL.

๐Ÿ“ NOTE For shurjoPay version 2 live engine integration's all necessary credential will be given to merchant after subscription completed on shurjoPay gateway.

surjoPayV2-laravel9

To integrate the shurjoPay Payment Gateway in your Laravel project do the following tasks sequentially.

Installation and Configuration

composer require shurjopayv2/laravel8

After successful installation of shurjopay-laravel-package, go to your project and open config folder and then click on app.php file. Append the following line in providers array.

shurjopayv2\ShurjopayLaravelPackage8\ShurjopayServiceProvider::class

After successfully doing the above steps add the following Keys in .env file with the credentials provided from shurjoMukhi Limited

MERCHANT_USERNAME=""  
MERCHANT_PASSWORD=""
MERCHANT_PREFIX=""
MERCHANT_RETURN_URL=""
MERCHANT_CANCEL_URL=""
ENGINE_URL=""

Now add this line of code in your method where you want to call shurjoPay Payment Gateway. You can use any code segment of below

use shurjopayv2\ShurjopayLaravelPackage8\Http\Controllers\ShurjopayController;
$info = array(
    'currency' => "",
    'amount' => ,
    'order_id' => "",
    'discount_amount' => ,
    'disc_percent' => ,
    'client_ip' => "",
    'customer_name' => "",
    'customer_phone' => "",
    'email' => "",
    'customer_address' => "",
    'customer_city' => "",
    'customer_state' => "",
    'customer_postcode' => "",
    'customer_country' => "",
);

$shurjopay_service = new ShurjopayController();
return $shurjopay_service->checkout($info);

for verifying,

$shurjopay_service = new ShurjopayController();
return $shurjopay_service->verify($order_id);``

In live-server we have to change the env file's merchant username, merchant password, merchant prefix, and engine URL according to provided by shurjopay.

Postman Documentations

This document will illustrate the overall request and response flow.
URL : https://documenter.getpostman.com/view/6335853/U16dS8ig	

Who do I talk to?

For any technical assistance please contact to: https://shurjopay.com.bd/#contacts

laravel9-shurjopay-v2's People

Contributors

sabbircodemen avatar webexfirm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.