ybreaka98/ebtekardcb
最新稳定版本:0.0.7
Composer 安装命令:
composer require ybreaka98/ebtekardcb
包简介
ebtekar dcb payment package
README 文档
README
A Laravel package for integrating with Ebtekar DCB (Direct Carrier Billing) payment services. This package provides a simple and elegant API for handling mobile subscription payments, user authentication, and subscription management.
Requirements
- PHP 8.2 or higher
- Laravel 11.0 or 12.0
- ext-json
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Installation
You can install the package via composer:
composer require ybreaka98/ebtekardcb
You can publish and run the migrations with:
php artisan vendor:publish --tag="ebtekardcb-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="ebtekardcb-config"
This is the contents of the published config file:
return [ 'base_url' => env('EBTEKAR_BASE_URL', 'https://connexlive.ebtekarcloud.com/external-api/'), 'email' => env('EBTEKAR_DCB_EMAIL', ''), 'password' => env('EBTEKAR_DCB_PASSWORD', ''), ]
Optionally, you can publish the views using
php artisan vendor:publish --tag="ebtekardcb-views"
Usage
use Ybreaka98\EbtekarDCB\Facades\EbtekarDCB; // Initialize subscription login $response = EbtekarDCB::login('218912345678', 'unique_transaction_id'); if ($response->isSuccessful()) { // Handle successful login request $data = $response->getJson(); } // Confirm login with OTP $confirmResponse = EbtekarDCB::confirmLogin('218912345678', '1234'); // Get subscription details $details = EbtekarDCB::subscriptionDetails('218912345678'); // Request protected script $script = EbtekarDCB::requestProtectedScript('#payment-button');
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-16