Download the PHP package hotpayments/php-sdk without Composer
On this page you can find all versions of the php package hotpayments/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hotpayments/php-sdk
More information about hotpayments/php-sdk
Files in hotpayments/php-sdk
Package php-sdk
Short Description Modern PHP SDK for HotPayments API - Handle payments, subscriptions, PIX transactions with a fluent, easy-to-use interface
License MIT
Homepage https://github.com/hotpayments/php-sdk
Informations about the package php-sdk
HotPayments PHP SDK
A modern, fluent PHP SDK for the HotPayments API. This SDK provides an easy-to-use interface for integrating HotPayments services into your PHP applications.
Installation
Install the SDK via Composer:
Quick Start
Basic Usage
Authentication
The SDK requires an API key for authentication. You can set it globally using the auth method:
Services
Customers Service
Subscriptions Service
Subscription Plans Service
Transactions Service
Laravel Integration
First, add your HotPayments configuration to config/services.php:
In your laravel application you can set in your boot method of AppServiceProvider:
Then you can use the SDK anywhere in your application:
Error Handling
The SDK provides specific exception classes for different error types:
API Reference
Customer Methods
create(array $data)- Create a new customerlist(array $params = [])- List customers with pagination
Subscription Methods
create(array $data)- Create a new subscriptionshow(string $id)- Get subscription detailscancel(string $id, array $data = [])- Cancel a subscriptionsuspend(string $id, array $data = [])- Suspend a subscriptionreactivate(string $id)- Reactivate a suspended subscription
Subscription Plans Methods
list(array $params = [])- List subscription plansall(array $params = [])- Alias for list()
Transaction Methods
createPixQrCode(array $data)- Create a PIX QR code transactionpixCashout(array $data)- Request a PIX cashoutcheck(string $id)- Check transaction status
Requirements
- PHP 8.1 or higher
- cURL extension
- Fileinfo extension
- Guzzle HTTP client
Support
For support, please contact [email protected] or visit our documentation.
License
This package is open-sourced software licensed under the MIT license.