Download the PHP package payagency/api without Composer
On this page you can find all versions of the php package payagency/api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download payagency/api
More information about payagency/api
Files in payagency/api
Informations about the package api
PayAgency PHP SDK
A comprehensive PHP SDK for PayAgency payment processing platform, supporting multiple payment methods including card payments, cryptocurrency transactions, payouts, and payment links.
Table of Contents
- Installation
- Quick Start
- Configuration
- API Reference
- Payment
- Payout
- Payment Links
- Cryptocurrency
- Transactions
- Refunds
- Error Handling
- Security
- Environment
- License
Installation
Requirements
- PHP 7.4 or higher
- Guzzle HTTP client
Quick Start
Configuration
PayAgencyClientOptions
| Parameter | Type | Required | Description |
|---|---|---|---|
encryptionKey |
string | Yes | 32-character encryption key for payload encryption |
secretKey |
string | Yes | Your API secret key (PA_TEST for test, PA_LIVE for live) |
baseUrl |
string | No | PayAgency API base URL (defaults to https://backend.pay.agency) |
Environment Detection
The SDK automatically detects the environment based on your secret key:
- Keys starting with
PA_LIVE_use live endpoints - Keys starting with
PA_TEST_use test endpoints
API Reference
Payment
The Payment module supports multiple payment methods:
Server-to-Server (S2S) Card Payments
Hosted Payment
Alternative Payment Methods (APM)
Payout
Manage payouts and wallet operations:
Create Payout
Get Wallets
Estimate Payout Fee
Check Payout Status
Payment Links
`php $paymentLink = $payAgency->getPaymentLink()->create([ 'payment_template_id' => 'PLI07435325281394735', // Required 'amount' => 1000, // optional 'currency' => 'USD', // optional 'expiry_date' => '2024-12-31', // optional 'terminal_id' => 'T12345', // optional 'order_id' => 'ORDER_123', // optional ]);
// Response format:
[
'message' => 'Payment link created successfully',
'data' => 'https://front.pay.agency/pay/PAY_LINK_...'
]