ybreaka98/ebtekardcb is a Laravel package for ebtekar dcb payment package.
It currently has 0 GitHub stars and 16 downloads on Packagist (latest version 0.0.7).
Install it with composer require ybreaka98/ebtekardcb.
Discover more Laravel packages by ybreaka98
or browse all Laravel packages to compare alternatives.
Last updated
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.
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.
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"
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');
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.