Download the PHP package nafiswatsiq/subbase-payment without Composer

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

Subbase Payment - Payment Gateway Plugin for Subbase

Latest Version on Packagist Total Downloads

Checkout Page Preview

Payment Status Page Preview

Invoice Mail Preview

Payment History & Webhook Logs

Payment gateway integrations for nafiswatsiq/subbase. Out-of-the-box support for popular gateways, public checkout pages, webhook handling, and payment events for subscription activation.

Quick links: Configuration


Features


Requirements

Important: Read the nafiswatsiq/subbase documentation before installing this payment plugin.


Installation

1. Install via Composer

To update the payment package and its dependencies:

Install Subbase and publish its migrations:

2. Register the Filament Plugin

Add SubbasePaymentPlugin to your Filament panel provider:

This registers the payment history and webhook log resources in your Filament panel.

3. Publish Configuration & Migrations

4. Interactive Gateway Installer

Run the interactive installer to configure your driver:

Or pass the driver explicitly:

Available Drivers for --driver:

CI / Non-interactive setup:

The install command updates your .env file with SUBBASE_PAYMENT_DRIVER and the corresponding provider credentials.

5. Run Migrations


Reset / Switch Driver

Reset current driver configuration and clear driver env keys:

Reset and immediately switch to another driver:


Public Checkout

Render the pricing component in any Blade view:

Customize pricing header text with label, title, and subtitle:

Each prop is optional. Omitted values use the default theme translations, or fallback text: Pricing, Simple, transparent pricing, and Choose the plan that fits your needs. No hidden fees.

When the payment plugin is installed, it automatically uses the subbase-payment.checkout route:

Checkout Configuration

Customize the checkout path, middleware, and post-payment redirects in config/subbase-payment.php:

Multi-Theme Integration

Checkout pages (checkout.blade.php) and status pages (status.blade.php) automatically render using the active SUBBASE_THEME configured in your application.

Supported themes:

Theme Preview


Default

Neo-brutalism

Glassmorphism

Neumorphism

Cyberpunk

Maximalism

Manage themes using Artisan:

The default return_url and cancel_url show the built-in status page. Set a named route or full URL to redirect the customer elsewhere after payment.

Plans with a final price of 0 are activated immediately for authenticated users. They do not open a payment gateway; the activation is recorded as a verified free payment in the payment history.

Custom Redirect After Payment

Set return_url / cancel_url to override the default status page:

Value Behavior
null (default) Show built-in status page (status.blade.php)
Named route (e.g. dashboard) redirect()->route('dashboard', $plan->slug)
Full URL (e.g. https://app.example/success) redirect()->away('https://app.example/success')

Example — redirect to dashboard after payment:

Example — external URLs:


Payment Driver & Documentation

Payment Payment Driver Driver Option Guide
PayPal PayPal paypal PayPal Setup Guide
Stripe Stripe stripe Stripe Setup Guide
Midtrans midtrans Midtrans Setup Guide
Xendit xendit Xendit Setup Guide
Paddle paddle Paddle Setup Guide
⚙️ Custom custom Custom Gateway Guide

Configuration

Published config/subbase-payment.php:

Key Default Description
driver null Selected gateway (paypal, stripe, midtrans, etc.)
checkout.path checkout Public checkout URL prefix
checkout.middleware ['web'] Middleware on checkout routes
checkout.return_url null Named route or full URL after successful payment
checkout.cancel_url null Named route or full URL after canceled payment
mail.send_invoice false Send email invoice to buyer on verified payment
webhook.path subbase-payment/webhook Webhook endpoint path
webhook.middleware [] Middleware on webhook (keep empty for PayPal)
gateways [] Per-gateway config (see driver guides)

Email Invoices

Optional email invoice sending to customer upon verified payment. Disabled by default.

Enable via .env

Add to your .env file:

Enable via Configuration

Or update config/subbase-payment.php:

The email view can be published and customized using:

Look for resources/views/vendor/subbase-payment/mail/invoice.blade.php.


Publishing Assets & Views

Publish configuration file:

Publish Blade views (checkout.blade.php, status.blade.php to resources/views/vendor/subbase-payment):


Development


Buy Me a Coffee

Support

License

The MIT License (MIT). Please see License File for more information.


All versions of subbase-payment with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
nafiswatsiq/subbase Version ^1.3
spatie/laravel-package-tools Version ^1.16
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 nafiswatsiq/subbase-payment contains the following files

Loading the files please wait ...