divinealien / gourl
This package is abandoned and no longer maintained.
No replacement package was suggested.
implementation of gourl.io payment gateway for Laravel framework
dev-main
2021-09-16 06:00 UTC
Requires
- php: ^7.3|^8.0
Requires (Dev)
- nunomaduro/collision: ^5.3
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2022-04-01 11:33:57 UTC
README
implementation of gourl.io payment gateway for Laravel framework
this project is abondoned
there is better choices
این پروژه به دلیل جستجو برای گزینه های بهتر لغو شده
- searching...
now this project is for only learning purposes
اکنون این کد فقط برای یادگیری نگه داشته شده است
pre-alpha !!!
پیاده سازی
- اول پکیج را نصب کنید
composer require divinealien/gourl:dev-master
- بعد از نصب پکیج فایل کانفیگ را میتوانید عمومی و بروزرسانی کنید
php artisan vendor:publish --tag=gourl-config
- بعد از اینکه تنظیمات لازم را روی فایل کانفیگ انجام دادید منابع لازم مثل عکس ها و ... را عمومی کنید
php artisan vendor:publish --tag=gourl-assets
- برای امتحان میتوانید کد زیر را اجرا کنید
// /routes/web.php use DivineAlien\Gourl\Facades\CryptoBill; Route::get('/', function () { $bill = CryptoBill::create([ 'userID' => 1, 'orderID' => 1, 'amountUSD' => 1, ]); return view("gourl::bills.basic", compact('bill')); });
- برای اینکه پرداختی انجام شده یا نه شما میتوانید به اونت ها گوش دهید.
در حال حاظر سه اونت وجود دارد
# برای همه پرداخت هایی که انجام میشود DivineAlien\Gourl\Events\NewCryptoPayment # برای همه پرداخت هایی که تایید شده اند DivineAlien\Gourl\Events\CryptoPaymentConfirmed # برای همه پرداخت هایی که هنوز تایید نشده اند DivineAlien\Gourl\Events\CryptoPaymentReceived