Download the PHP package ashrafic/bagisto-clover without Composer

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

Bagisto Clover

Packagist Version Packagist Downloads

Clover Hosted Checkout payment gateway for Bagisto 2.x.

Customers are redirected to a PCI-compliant, Clover-hosted payment page — no card data ever touches your server (SAQ-A PCI scope). After payment, the order, invoice and order transaction are created automatically, verified through Clover's signed webhook with a redirect fallback so an order is never lost if the webhook is delayed.

How it works

Features

Requirements

Requirement Version
PHP ^8.3
Bagisto 2.x
Laravel 12.x

You also need a Clover merchant account with Hosted Checkout enabled (Ecommerce section of the Merchant Dashboard) and an HTTPS store URL (required by Clover for redirect URLs and webhooks).

Installation

Register the module in config/concord.php (inside the modules array) — this is the only manual step, and it is required by Bagisto's module system for every package:

Run the migration, publish the checkout logo and refresh:

That's it — no core file edits are needed. The webhook route is CSRF-exempt by design (stateless, throttled), and the migration creates the clover_checkout_sessions table. If your app disables package discovery, register the provider manually in bootstrap/providers.php:

When does Clover appear in the store?

Clover dashboard setup

  1. Log in to the Clover Merchant Dashboard.
  2. Go to Settings → View all settings → Ecommerce → Hosted Checkout.
  3. Generate an Ecommerce API token for the Hosted Checkout integration type:
    • The private token is your API token (Bearer token)
    • Note your merchant ID (mId)
  4. In the Webhook section, enter https://your-store.com/clover/webhook, click Generate and copy the signing secret.
  5. Leave the dashboard redirect URLs empty — the package sends per-transaction redirect URLs (/clover/success, /clover/cancel) with the checkout session id embedded, and dashboard values would override them.

Configuration

In the Bagisto admin: Configure → Sales → Payment Methods → Clover.

Field Description
Status Enable/disable the method
Title / Description Shown at checkout (per channel and locale)
Logo Payment method logo shown at checkout
Merchant ID / API Token / Webhook Signing Secret Production credentials
Sandbox Toggle between sandbox and production credentials
Test Merchant ID / Test API Token / Test Webhook Signing Secret Sandbox credentials
Page Config UUID Optional UUID when using multiple Hosted Checkout page configurations

Testing

Sandbox test transaction

  1. Create a free account on the Clover Developer Dashboard — a sandbox test merchant is provisioned automatically.
  2. Configure the sandbox credentials in the admin (sandbox enabled) and set APP_URL to an HTTPS URL (use a tunnel such as ngrok for local development).
  3. Check out and pay with the test cards (per Clover's test card numbers):

    Scenario Card number
    Successful payment 4242 4242 4242 4242
    Successful payment (debit) 4000 0566 5566 5556
    Declined payment 4264 2815 1111 7771

    Expiry: any future date · CVV: any 3 digits · ZIP: any 5 digits.

    Note that Clover's sandbox approves transactions below $100.00 and returns an error above it — keep the test cart total under $100.

Test suite

The tests run inside a Bagisto installation. Add the suites to the app's phpunit.xml:

Bind the test case in tests/Pest.php:

The feature suite covers the full payment flow: redirect processing, webhook-first processing, the webhook/redirect race, signature rejection and declined payments — no real Clover account required.

Troubleshooting

Open /{admin-url}/clover/diagnostics in the store (any logged-in admin) — it shows:

Notes

Contributing

Contributions are welcome. Please make sure the existing code style (Laravel preset, pint.json) and the test suite pass:

License

MIT


All versions of bagisto-clover with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
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 ashrafic/bagisto-clover contains the following files

Loading the files please wait ...