Download the PHP package localgovdrupal/govuk_pay without Composer

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

GOV.UK Pay for Drupal

Overview

This module provides integration with the GOV.UK Pay service for Drupal websites. GOV.UK Pay is the UK government's online payment service that allows users to make payments for government services.

Features

Requirements

Installation

  1. Install the module using Composer:

  2. Enable the module through the Drupal admin interface or using Drush:

Configuration

  1. Navigate to the configuration page at Administration → Configuration → Web services → GOV.UK Pay
  2. Enter your GOV.UK Pay API key
  3. Configure the payment reference format that will appear on all completed payments
  4. Save the configuration

API Authentication

The module handles authentication with the GOV.UK Pay API using the HTTP Bearer token format in the Authorization header. The API key is stored in Drupal's configuration system. You may want to override this key in your environment's settings.local.php file. To do so you would add the following lines:

Webhooks

The module provides a webhook endpoint that automatically updates payment entity statuses when they change in the GOV.UK Pay system. This ensures your Drupal site always has the most up-to-date payment information, even if users don't return to your site after completing a payment.

Webhook Endpoint

The webhook endpoint is available at:

Setting Up Webhooks in GOV.UK Pay

  1. Log in to your GOV.UK Pay account
  2. Navigate to the webhook settings section
  3. Add a new webhook with your site's URL: https://your-domain.com/api/govuk-pay/webhook
  4. Select which payment status events you want to receive notifications for (recommended: all status changes)

How It Works

When a payment status changes in GOV.UK Pay:

  1. GOV.UK Pay sends a notification to your webhook endpoint
  2. The webhook controller validates the incoming data
  3. The controller finds the corresponding payment entity in your Drupal site
  4. The payment status is updated to match the current status in GOV.UK Pay
  5. All actions are logged for auditing and debugging purposes

Security Considerations

Extension

This module provides the base integration with GOV.UK Pay. Additional functionality is available through submodules:

Troubleshooting

Credits

Originally developed by Webcurl. Refactored and updated by Royal Borough of Greenwich.

License

This project is licensed under the GNU General Public License v2.0 or later.


All versions of govuk_pay with dependencies

PHP Build Version
Package Version
Requires tanc/govuk-pay-client-php Version ^1.0.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 localgovdrupal/govuk_pay contains the following files

Loading the files please wait ....