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
Requires
- php: >=7.4
- guzzlehttp/guzzle: ^7.0
- vlucas/phpdotenv: ^5.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.88
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
- Copy
.env.exampleto.envand fill in your sandbox/production credentials. composer install- 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.