Download the PHP package sloukapetr/comgate-laravel-package without Composer

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

comgate-laravel-package

Clean, reusable Laravel package for Comgate Merchant REST API v2.0 integration with Laravel 11, 12 and 13.

Features

Installation

For local package linking:

Laravel package discovery is enabled automatically.

Compatibility

The Testbench range is intentional. It keeps package development aligned with the corresponding Laravel major versions instead of pinning local tests to only one framework branch.

Configuration

Publish the package config:

Configure .env values:

Recommended Laravel Use Cases

This package is a good fit when your Laravel app needs to own the payment lifecycle, not just send the customer to Comgate.

Typical pattern in the app:

Displaying the Payment Gateway

Comgate supports three main frontend integration styles. The best choice depends on how much control you want over the checkout UX.

REDIRECT

Use redirect when you want the simplest and most robust implementation.

Laravel recommendation:

INLINE

Use inline when you want the gateway embedded in your checkout page.

Laravel recommendation:

Checkout SDK

Use Checkout SDK if you want the deepest checkout integration and the most polished in-app card/Apple Pay/Google Pay experience.

Laravel recommendation:

Choosing Between Them

For most Laravel teams, the practical default is REDIRECT first, then INLINE, and only later Checkout SDK if you need the extra UX control.

Usage

Initial recurring payment

Subsequent recurring charge

For backward compatibility, the service also accepts initTransId and maps it to initRecurringId.

Pre-authorization

Refund, cancellation and status

Available payment methods

Gateway health and outages

Payment availability feedback

Use this when you want a higher-level answer than raw /methods or raw status data.

Returned report includes:

For stricter application flow, you can use the typed report or block payment creation up front.

cancel() remains available as a backward-compatible alias for pre-authorization cancellation.

Exceptions

The package throws ComgateRequestException by default and narrows a few common API cases into dedicated exceptions:

Subscription management

Comgate handles the payment tokenization flow for recurring card charges, but the subscription lifecycle remains in your Laravel application.

Typical Laravel design:

Admin Payment Overview

If you are building an admin panel, keep a local payment overview table or screen. That makes refunds, cancellations and subscription maintenance much easier.

Useful columns and fields:

Useful admin actions:

Recommended admin rules:

Webhooks

When enabled, the package registers a POST webhook route (/comgate/webhook by default).

Facade

Official API Reference

Testing

The package includes HTTP-layer tests using Laravel Http::fake() and Testbench for webhook route coverage. The facade fake helper can be used in application tests when you want to avoid HTTP calls and assert recorded Comgate operations.

Release

See RELEASE_CHECKLIST.md for the package release checklist.


All versions of comgate-laravel-package with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/events Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/routing Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.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 sloukapetr/comgate-laravel-package contains the following files

Loading the files please wait ...