Download the PHP package jkbroot/thawani without Composer

On this page you can find all versions of the php package jkbroot/thawani. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package thawani

alt tag

jkbroot/thawani

This Laravel package facilitates easy integration with the Thawani payment gateway, offering a straightforward and intuitive set of functionalities for payment session creation, customer management, and transaction handling, all within your Laravel application.

Features

Requirements

Installation

This package supports Package Auto-Discovery, which was introduced in Laravel 5.5. Therefore, it doesn't require manual registration of the ServiceProvider in most cases.

If you're using a version of Laravel where auto-discovery is not supported or have specifically disabled it, you need to register the ServiceProvider manually.

Add the ServiceProvider to the providers array in config/app.php:

Configuration:

Publish the configuration file by running the following Artisan command. This will publish the Thawani configuration file to config/thawani.php, where you can customize your settings.

_Copy the Thawani Pay configuration snippet you provided and paste it into your .env file. However,The THAWANIMODE should be set to live instead of test for a production environment :

Replace your_thawani_live_secret_key and your_thawani_live_publishable_key with your actual Thawani live secret and publishable keys.

Instantiating ThawaniPay Class

To begin using the Thawani payment functionality, you need to instantiate the ThawaniPay class. Follow these steps:

Step 1: Import ThawaniPay Class

Before you can create an instance of the ThawaniPay class, ensure that you import it into your PHP file using the use statement:

Step 2: Instantiate ThawaniPay Class

Once the class is imported, you can instantiate it using the following code:

This creates an instance of the ThawaniPay class, allowing you to utilize its methods and properties for handling Thawani payments within your Laravel application.

Additional Notes

How to use :

1 - checkout & session

Create session Response :

Retrieve session Response :

Cancel session Response :

list Sessions Response :

2 - Customers

3 - Pyament Intents

Here's a concise explanation for each method in the supported classes of your Laravel package for integrating the Thawani payment gateway:

CheckoutSessions

Customers

PaymentIntents

PaymentMethods

Refunds

This overview provides a quick guide to the functionalities available in your Laravel package for integrating Thawani payment services.


All versions of thawani with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jkbroot/thawani contains the following files

Loading the files please wait ....