Download the PHP package opentickettech/powertranz-hhp without Composer
On this page you can find all versions of the php package opentickettech/powertranz-hhp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download opentickettech/powertranz-hhp
More information about opentickettech/powertranz-hhp
Files in opentickettech/powertranz-hhp
Package powertranz-hhp
Short Description Powertranz gateway for the Omnipay payment processing library
License MIT
Homepage https://omnipay.thephpleague.com/
Informations about the package powertranz-hhp
Omnipay: Powertranz
Powertranz gateway driver for the Omnipay PHP payment processing library
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP. This package implements Powertranz support for Omnipay.
Installation
Via Composer:
Usage
Gateway Initialization
Purchase (Payment Initiation)
This creates a payment request and returns an SPI token for the hosted payment page:
Complete Purchase (Process Return)
After the customer completes payment and returns to your site:
Fetch Transaction Details
Query the status of a transaction:
Refund Transaction
Process a full or partial refund:
Advanced Configuration
Custom 3D Secure Settings
Currency Support
The gateway supports all ISO 4217 currency codes with automatic numeric code conversion. You can use either the 3-letter ISO code (e.g., 'USD', 'EUR', 'GTQ') or the 3-digit numeric code (e.g., '840', '978', '320').
Common currencies include:
- GTQ (320) - Guatemalan Quetzal
- USD (840) - US Dollar
- EUR (978) - Euro
- GBP (826) - British Pound Sterling
- CAD (124) - Canadian Dollar
- AUD (036) - Australian Dollar
- JPY (392) - Japanese Yen
- CNY (156) - Chinese Yuan
- INR (356) - Indian Rupee
- MXN (484) - Mexican Peso
- BRL (986) - Brazilian Real
The gateway automatically converts ISO currency codes to their numeric equivalents as required by the Powertranz API. All 180+ world currencies are supported.
Testing
Run the unit tests:
Run code style checks:
Fix code style issues:
API Endpoints
The gateway uses the following Powertranz API endpoints:
- Test Environment:
https://staging.ptranz.com - Production Environment:
https://ptranz.com
Endpoints Used:
/Api/Spi/Auth- Payment initiation (SPI token generation)/Api/spi/Payment- Complete payment (process SPI token)/Api/refund- Process refunds/Api/Transactions/{id}- Fetch transaction details
Response Codes
Common ISO response codes returned by the gateway:
00- Approved/Success05- Declined99- General error/Not found
Security
- Never expose your Powertranz credentials in client-side code
- Always validate the transaction status server-side
- Use HTTPS for all API communications
- Store sensitive transaction data securely
Support
For gateway-specific issues, contact Powertranz support. For library issues, please use the GitHub issue tracker.
License
This package is open-sourced software licensed under the MIT license.