Download the PHP package uddoktapay/laravel-sdk without Composer
On this page you can find all versions of the php package uddoktapay/laravel-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download uddoktapay/laravel-sdk
More information about uddoktapay/laravel-sdk
Files in uddoktapay/laravel-sdk
Package laravel-sdk
Short Description UddoktaPay offers a range of payment automation solutions for small entrepreneurs in Bangladesh.
License MIT
Informations about the package laravel-sdk
UddoktaPay Laravel SDK
The UddoktaPay Laravel SDK allows you to seamlessly integrate the UddoktaPay payment gateway into your Laravel applications.
Table of Contents
- Installation
- Usage
- Initializing the SDK
- Initializing a Payment
- Verifying a Payment
- Handling IPN Notifications
- Processing Refunds
- Routes
- Notes
Installation
Install the UddoktaPay Laravel SDK using Composer:
Usage
Initializing the SDK
Add your UddoktaPay API credentials to the .env
file:
Use the following code to initialize the SDK:
Initializing a Payment
To initiate a payment:
Verifying a Payment
After the payment is complete, verify it using the VerifyResponse
class to understand the structure and available methods for processing the response:
Handling IPN Notifications (Optional)
To handle Instant Payment Notifications (IPN):
Processing Refunds (Optional)
To process a refund:
Routes
Add the following routes to your web.php
file:
Notes
- Replace placeholders like
your_api_key
with actual credentials. - Use appropriate routes for success, cancel, and IPN handling.
- Always wrap SDK calls with
try-catch
to handle errors effectively.
License
This project is open-source and available under the MIT License.
All versions of laravel-sdk with dependencies
illuminate/support Version ^8.0||^9.0||^10.0||^11.0
illuminate/http Version ^8.0||^9.0||^10.0||^11.0