Download the PHP package qattapay/laravel without Composer

On this page you can find all versions of the php package qattapay/laravel. 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 laravel

QattaPay Laravel SDK

Official QattaPay SDK for Laravel — add group contribution checkout to any storefront.

QattaPay lets groups of people split the cost of a purchase. This package handles:

Parity with the Node SDK @hadawi/sdk.


Requirements


Installation

The service provider and QattaPay facade are auto-discovered.

Publish the config (optional):


Configuration

Add to your .env:

Key Description
api_key Merchant API key from the QattaPay dashboard
webhook_secret whsec_… signing secret (Developer → Webhook)
mode dev or live (ignored if base_url is set)
base_url Explicit API base (e.g. local) — disables host fallback
browser_sdk_version @hadawi/sdk version loaded for <x-qattapay-button>

Amounts are always integers in the smallest currency unit (halalas for SAR — e.g. 15000 = 150.00 SAR).


Quick start

1 — Create an intent (server)

2 — Mount the branded button (Blade)

Attribute Purpose
success-url After popup onSuccess (qattapay:success), navigate here
return-url Passed to hosted checkout as ?returnUrl=. After payment, QattaPay redirects here with intentId, sessionId, and status=success\|cancel\|failed. Use for redirect mode (and as a popup fallback).
open-mode popup (default) or redirect

Ensure your layout includes the CSRF meta tag:

3 — Handle webhooks


API reference

Intents

Orders

These map to the same dashboard actions as Mark as Fulfilling / Mark as Delivered. Call them from your backend — they are not optional for merchants who want their own OMS in sync, but QattaPay does not require them before payout.

Order status lifecycle:

fulfill() only works from funded or notified. deliver() only works from fulfilling.

Refunds process synchronously against the original payment method and notify each affected contributor. They are rejected (HTTP 400) when the order is already in a payout, or the session is already refunding / refunded / cancelled.

Webhooks

Event types: order.funded, order.partially_funded, order.cancelled, order.expired.


Host resolution

Mode Primary Fallback (network errors only)
dev https://dev.qatta.sa/api https://dev.hadawi.sa/api
live https://qatta.sa/api https://beta.hadawi.sa/api

Development

Publishing

Package: packagist.org/packages/qattapay/laravel
Latest release: v1.1.1

To ship a new version, bump the changelog, push main, then tag:

Packagist updates automatically via the GitHub webhook. Full checklist: PUBLISHING.md.


License

MIT © Hadawi Engineering


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/view Version ^10.0|^11.0|^12.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 qattapay/laravel contains the following files

Loading the files please wait ...