gragerdsouza/payit-php-client

PHP client for Payit (NatWest) API

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/gragerdsouza/payit-php-client

v1.0.1 2025-10-05 14:48 UTC

This package is auto-updated.

Last update: 2026-01-06 19:54:11 UTC


README

This repository contains a small PHP client for the Payit API (NatWest / Payit). It demonstrates:

  • OAuth2 client_credentials token retrieval
  • Basic endpoints: list banks, create payments, check payment status
  • Example scripts

Setup

  1. Copy .env.example to .env and fill in your sandbox/production credentials.
  2. composer install
  3. Run examples: php examples/get_token.php

Notes

  • Replace placeholder endpoints and payloads with the exact shapes from the Payit API documentation.
  • Do not store client secrets in source control.
  • Use the sandbox environment for testing before going live.