Download the PHP package kechankrisna/payway-partner without Composer
On this page you can find all versions of the php package kechankrisna/payway-partner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kechankrisna/payway-partner
More information about kechankrisna/payway-partner
Files in kechankrisna/payway-partner
Package payway-partner
Short Description ABA PayWay partner API client for PHP. Register merchants, decrypt the pushback and inquire merchant info.
License MIT
Homepage https://github.com/kechankrisna/payway-partner/tree/main/php
Informations about the package payway-partner
PayWay Partner SDKs
Clients for the ABA PayWay partner API: register merchants on your platform, receive their credentials, and inquire merchant info. The same SDK is available for three languages, all tested against one shared set of test vectors.
| Language | Package | Install | Docs |
|---|---|---|---|
| Dart / Flutter | payway_partner |
dart pub add payway_partner |
dart/ |
| Node.js (TypeScript) | @kechankrisna/payway-partner |
npm install @kechankrisna/payway-partner |
node/ |
| PHP | kechankrisna/payway-partner |
composer require kechankrisna/payway-partner |
php/ |
Quick start
Every SDK takes the same partner credentials from ABA and exposes the same calls. Full guides: Node · PHP.
PHP
Node.js
Dart
Features
| Feature | Dart | Node | PHP |
|---|---|---|---|
| Register a merchant | registerMerchant |
registerMerchant |
registerMerchant |
Decrypt the pushback on your pushback_url |
decryptPushback |
decryptPushback |
decryptPushback |
| Inquiry merchant info via register ref | checkMerchant |
checkMerchant |
checkMerchant |
| Inquiry merchant info via merchant public key | getMcInfo |
getMcInfo |
getMcInfo |
All three SDKs share the same design:
- PayWay business errors (
PTL02 Wrong Hash,PTL46 Merchant not found, ...) are returned instatus; network and decryption failures throw a typed error with an error type andisRetryable. - Every dependency is injectable: HTTP client, clock, crypto, logger.
- TLS certificates are always verified; secrets are kept out of logs.
request_timeis UTC; RSA works with 1024 and 2048 bit keys in PEM (PKCS#1 / PKCS#8 / SPKI) or bare base64.
Where to run it
Run these SDKs on your server, never in an app you ship or in a browser:
the partner key and private key are secrets, PayWay requires a whitelisted
Referer, and your pushback_url is a server endpoint anyway.
Repository layout
See CONTRIBUTING.md for running the tests and releasing.
License
MIT
All versions of payway-partner with dependencies
ext-json Version *
ext-openssl Version *
psr/clock Version ^1.0
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 || ^2.0
psr/log Version ^2.0 || ^3.0