Download the PHP package smatpay/smatpay-php-sdk without Composer
On this page you can find all versions of the php package smatpay/smatpay-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download smatpay/smatpay-php-sdk
More information about smatpay/smatpay-php-sdk
Files in smatpay/smatpay-php-sdk
Download smatpay/smatpay-php-sdk
More information about smatpay/smatpay-php-sdk
Files in smatpay/smatpay-php-sdk
Vendor smatpay
Package smatpay-php-sdk
Short Description Provides a payment gateway for Zimbabwean Payment Providers
License MIT
Package smatpay-php-sdk
Short Description Provides a payment gateway for Zimbabwean Payment Providers
License MIT
Please rate this library. Is it a good library?
Informations about the package smatpay-php-sdk
Smatpay PHP SDK
PHP client library for the Smatpay Payment Gateway — supporting Zimbabwean payment providers including Ecocash, Innbucks, ZimSwitch, Visa, and Mastercard.
Requirements
- PHP >= 7.4
ext-curlext-json
Installation
Supported Payment Providers
| Wallet | Constant |
|---|---|
| Ecocash | WalletName::ECOCASH |
| Innbucks | WalletName::INNBUCKS |
| ZimSwitch | WalletName::ZIMSWITCH |
| Visa | WalletName::VISA |
| Mastercard | WalletName::MASTERCARD |
Usage
1. Initiate a Payment
2. Enquire / Check Transaction Status
Note: Innbucks enquiry also requires
->setTransactionCode('...').
3. Bulk / Split Payment
4. Fast Checkout (Payment Link)
5. List Available Currencies
Sandbox vs Production
Pass true as the second argument to pay(), enquire(), or bulk() to use the sandbox environment:
Exception Handling
All methods throw typed exceptions on failure:
| Exception | Thrown when |
|---|---|
TokenGenerationFailed |
Authentication token request fails |
PaymentProcessingFailed |
Payment or bulk request fails |
EnquireFailed |
Transaction enquiry fails |
PaymentGatewayNotFound |
Unknown wallet name passed to factory |
Changelog
v1.0.5
- Fixed SSL verification — re-enabled
CURLOPT_SSL_VERIFYPEERandCURLOPT_SSL_VERIFYHOSTfor all HTTP calls - Set 30-second cURL timeout across all requests (was previously
0— no timeout) - Fixed
enquire()HTTP method from non-standardGETwith body to correctPOST - Fixed
EnquireFailedexception message (was identical toPaymentProcessingFailed) - Fixed missing space in
PaymentProcessingFailedexception message - Added error handling and SSL/timeout fix to
Currency::all() - Replaced
switch-based gateway factory with a registry map for easier extensibility - Pinned PHPUnit to
^10.0in dev dependencies
v1.0.4 and earlier
- Initial release with Ecocash, Innbucks, ZimSwitch, Visa, Mastercard support
- Fast Checkout / payment link support
- Bulk/split payment support
- Sandbox and production environment toggle
License
MIT © Smatech Group
All versions of smatpay-php-sdk with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-json Version *
ext-curl Version *
ext-json Version *
ext-curl Version *
The package smatpay/smatpay-php-sdk contains the following files
Loading the files please wait ...