Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Savano Laravel Package

kpasokhi/savano

Laravel package for integrating the Savano payment gateway. Install via Composer, request payments with amount/order ID/callback, redirect users to the bank URL, then verify transactions using authority, price, and order ID; includes result status and error messages.

View on GitHub
Deep Wiki
Context7

Savano Payment

Savano Payment Gateway For Laravel

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require kpasokhi/savano

or add

"kpasokhi/savano": "1.*"

to the require section of your composer.json file.

How to use this extension

For example, imagine that you have a controller called this PaymentController at first you need 2 actions, one of them is for request payment and another is verify payment.

You need to use an storage to save your payments and payments status.

PaymentController.php

..... 

<?php
public function actionRequest()
{
    /* Your Data */
    $pin      = 'Your Pin';
    $callback = 'Your Callback Url';

    /* Save Price, OrderId and Authority In Your Storage */
    $price    = 1000;
    $orderId  = 1;

    $savano = new Savano;
    $savano->pin = $pin;

    if($request = $savano->request($price, $orderId, $callback)->getResult() === 1)
    {
        // $authority = $savano->getAuthority();
        // You can save your payment request data to the database in here before redirect user to bank

        return $this->redirect($savano->getRedirectUrl());
    }
    else
    {
        // Show Error.
        echo $savano->getErrorMessage();
    }
}

public function actionVerify()
{
    $pin = 'Your Pin';

    /* Fetch Price, OrderId and Authority From Your Storage */
    $authority = 'xxxxxxxxxxxxxxx';
    $price     = 1000;
    $orderId   = 1;

    $savano = new Savano;
    $savano->pin = $pin;

    if($verify = $savano->verify($authority, $price, $orderId)->getResult() === 1)
    {
        // Payment Successfully
    }
    else
    {
        // Show Error
        echo $savano->getErrorMessage();
    }
}

.....
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky