Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service vendor api #12

Merged
merged 54 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
9ad60e5
assign routes created
hafijul233 Jan 9, 2024
2557010
assign routes created
hafijul233 Jan 9, 2024
2188723
Fix styling
hafijul233 Jan 9, 2024
361519d
airtime seeder updated with typo fixed
hafijul233 Jan 24, 2024
3008d4f
Fix styling
hafijul233 Jan 27, 2024
4f83494
merge with origin
hafijul233 Feb 8, 2024
25e72ed
remote vendor origin merged
hafijul233 Feb 12, 2024
1afdd4d
service asssignalbe vendor list adde
hafijul233 Feb 13, 2024
b950f8c
Fix styling
hafijul233 Feb 13, 2024
77f9c20
service provider updated
hafijul233 Feb 14, 2024
a87b7e3
service provider updated
hafijul233 Feb 14, 2024
b7e65f1
Fix styling
hafijul233 Feb 14, 2024
eeafced
service vendors added
hafijul233 Feb 15, 2024
036c6b6
Merge remote-tracking branch 'origin/service-vendor-api' into service…
hafijul233 Feb 15, 2024
18614c4
order quotation check added
hafijul233 Feb 15, 2024
ba0b42c
Fix styling
hafijul233 Feb 15, 2024
9185ae5
event list updated
hafijul233 Feb 18, 2024
de28a2f
Fix styling
hafijul233 Feb 18, 2024
4de552e
code formatted and optimized
hafijul233 Feb 26, 2024
d013015
Fix styling
hafijul233 Feb 29, 2024
9b1fa61
composer json updated
hafijul233 Feb 29, 2024
61973d4
typo fixed
hafijul233 Mar 3, 2024
5d8f15d
typo fixed
hafijul233 Mar 3, 2024
3dc4ec7
Fix styling
hafijul233 Mar 3, 2024
278c8e5
mongo model typo fixed
hafijul233 Mar 4, 2024
3e75083
Islami Bank APi Script added
hafijul233 Apr 1, 2024
149b5eb
remit config update
mah-shamim Apr 3, 2024
cbdd411
__responseCodeList array code write
mah-shamim Apr 3, 2024
8431761
__responseStatusCodeList array code write
mah-shamim Apr 3, 2024
fa18c01
islami bank api code writing done but not tested
mah-shamim Apr 3, 2024
32782e9
Fix styling
mah-shamim Apr 3, 2024
0553e64
islami bank api code writing done but not tested
mah-shamim Apr 3, 2024
9fb4482
merge main with service vendor api
hafijul233 Apr 3, 2024
1cd358b
islami bank api credential update
mah-shamim Apr 3, 2024
25a7f44
Merge remote-tracking branch 'origin/service-vendor-api' into service…
mah-shamim Apr 3, 2024
fa57ea4
islami bank api config issue fixed
hafijul233 Apr 3, 2024
1c750c7
Fix styling
hafijul233 Apr 3, 2024
516e116
missing namespace and method title issued fixed
hafijul233 Apr 3, 2024
3f9c84a
space timed
hafijul233 Apr 3, 2024
abf20b2
log added on raw response
hafijul233 Apr 3, 2024
0cc8074
Fix styling
hafijul233 Apr 3, 2024
f419f0d
trans fast api config updated
hafijul233 Apr 5, 2024
d430262
islami bank payload changed
hafijul233 Apr 15, 2024
e02c857
Fix styling
hafijul233 Apr 15, 2024
e10fa24
islami bank payload changed
hafijul233 Apr 15, 2024
7286708
Merge remote-tracking branch 'origin/service-vendor-api' into service…
hafijul233 Apr 15, 2024
5ec7814
Fix styling
hafijul233 Apr 15, 2024
2579eb1
composer typo fixed
hafijul233 Apr 15, 2024
7462701
remit service provider issue testing
hafijul233 Apr 20, 2024
f7019b1
remit service provider issue testing
hafijul233 Apr 20, 2024
6ecea83
package register added trail added
hafijul233 Apr 21, 2024
43ccbf0
provider grouped
hafijul233 Apr 29, 2024
79afb56
provider refactored
hafijul233 Apr 29, 2024
87424fc
route path issue fixed
hafijul233 Apr 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
],
"require": {
"php": "^8.1",
"ext-curl": "*",
"ext-dom": "*",
"ext-simplexml": "*",
"fintech/core": "*",
"fintech/transaction": "*",
"illuminate/contracts": "^10.0",
"owen-it/laravel-auditing": "^13.5"
},
Expand Down
45 changes: 31 additions & 14 deletions config/remit.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
<?php

// config for Fintech/Remit
use Fintech\Remit\Models\BankTransfer;
use Fintech\Remit\Models\CashPickup;
use Fintech\Remit\Models\WalletTransfer;
use Fintech\Remit\Repositories\Eloquent\BankTransferRepository;
use Fintech\Remit\Repositories\Eloquent\CashPickupRepository;
use Fintech\Remit\Repositories\Eloquent\WalletTransferRepository;

return [

/*
Expand Down Expand Up @@ -31,7 +38,7 @@
|
| This value will be used to across system where model is needed
*/
'bank_transfer_model' => \Fintech\Remit\Models\BankTransfer::class,
'bank_transfer_model' => BankTransfer::class,

/*
|--------------------------------------------------------------------------
Expand All @@ -40,7 +47,7 @@
|
| This value will be used to across system where model is needed
*/
'cash_pickup_model' => \Fintech\Remit\Models\CashPickup::class,
'cash_pickup_model' => CashPickup::class,

/*
|--------------------------------------------------------------------------
Expand All @@ -49,7 +56,7 @@
|
| This value will be used to across system where model is needed
*/
'wallet_transfer_model' => \Fintech\Remit\Models\WalletTransfer::class,
'wallet_transfer_model' => WalletTransfer::class,

//** Model Config Point Do not Remove **//

Expand Down Expand Up @@ -113,16 +120,12 @@
'mode' => 'sandbox',
'driver' => Fintech\Remit\Vendors\TransFastApi::class,
'live' => [
'endpoint' => 'https://fex.agranibank.org/remapiuat',
'username' => '7106UAT',
'password' => '7106@Pass',
'excode' => '7106',
'endpoint' => 'https://send.transfast.ws/api/',
'token' => env('PACKAGE_REMIT_TRANS_FAST_TOKEN'),
],
'sandbox' => [
'endpoint' => 'https://fex.agranibank.org/remapiuat',
'username' => '7086UAT',
'password' => '7086@Pass',
'excode' => '7086',
'endpoint' => 'https://demo-api.transfast.net/api/',
'token' => env('PACKAGE_REMIT_TRANS_FAST_TOKEN'),
],
],
'valyou' => [
Expand All @@ -141,6 +144,20 @@
'excode' => '7086',
],
],
'islamibank' => [
'mode' => 'sandbox',
'driver' => Fintech\Remit\Vendors\IslamiBankApi::class,
'live' => [
'endpoint' => 'https://ibblmtws.islamibankbd.com/ibblmtws/services/ImportFTTMsgWS?wsdl',
'username' => 'clavistestws',
'password' => 'Clavis@01',
],
'sandbox' => [
'endpoint' => 'https://ibblmtws.islamibankbd.com/ibblmtws/services/ImportFTTMsgWS?wsdl',
'username' => 'clavistestws',
'password' => 'Clavis@01',
],
],
],
/*
|--------------------------------------------------------------------------
Expand All @@ -151,11 +168,11 @@
*/

'repositories' => [
\Fintech\Remit\Interfaces\BankTransferRepository::class => \Fintech\Remit\Repositories\Eloquent\BankTransferRepository::class,
\Fintech\Remit\Interfaces\BankTransferRepository::class => BankTransferRepository::class,

\Fintech\Remit\Interfaces\CashPickupRepository::class => \Fintech\Remit\Repositories\Eloquent\CashPickupRepository::class,
\Fintech\Remit\Interfaces\CashPickupRepository::class => CashPickupRepository::class,

\Fintech\Remit\Interfaces\WalletTransferRepository::class => \Fintech\Remit\Repositories\Eloquent\WalletTransferRepository::class,
\Fintech\Remit\Interfaces\WalletTransferRepository::class => WalletTransferRepository::class,

//** Repository Binding Config Point Do not Remove **//
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Fintech\Core\Enums\Transaction\OrderStatus;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
Expand Down Expand Up @@ -31,7 +32,7 @@ public function up(): void
$table->longText('notes')->nullable();
$table->boolean('is_refunded')->nullable()->default(false)->comment('if money has refunded');
$table->json('order_data')->nullable();
$table->string('status')->default(\Fintech\Core\Enums\Transaction\OrderStatus::Processing->value);
$table->string('status')->default(OrderStatus::Processing->value);
$table->foreignId('creator_id')->nullable();
$table->foreignId('editor_id')->nullable();
$table->foreignId('destroyer_id')->nullable();
Expand Down
3 changes: 2 additions & 1 deletion resources/img/service/logo_svg/mbs_m_cash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/img/service_vendor/logo_png/agrani.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/img/service_vendor/logo_png/emqapi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/img/service_vendor/logo_png/valyou.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions resources/img/service_vendor/logo_svg/agrani.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/img/service_vendor/logo_svg/citybank.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions resources/img/service_vendor/logo_svg/emqapi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions resources/img/service_vendor/logo_svg/transfast.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions resources/img/service_vendor/logo_svg/valyou.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 15 additions & 13 deletions routes/api.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

use Fintech\Core\Facades\Core;
use Fintech\Remit\Http\Controllers\AssignVendorController;
use Fintech\Remit\Http\Controllers\BankTransferController;
use Fintech\Remit\Http\Controllers\CashPickupController;
use Fintech\Remit\Http\Controllers\WalletTransferController;
use Fintech\Remit\Http\Controllers\WalletVerificationController;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Route;

Expand All @@ -15,19 +21,15 @@
*/
if (Config::get('fintech.remit.enabled')) {
Route::prefix('remit')->name('remit.')
->middleware(config('fintech.auth.middleware'))
->group(function () {

Route::apiResource('bank-transfers', \Fintech\Remit\Http\Controllers\BankTransferController::class)->except('update', 'destroy');
//Route::post('bank-transfers/{bank_transfer}/restore', [\Fintech\Remit\Http\Controllers\BankTransferController::class, 'restore'])->name('bank-transfers.restore');

Route::apiResource('cash-pickups', \Fintech\Remit\Http\Controllers\CashPickupController::class)->except('update', 'destroy');
//Route::post('cash-pickups/{cash_pickup}/restore', [\Fintech\Remit\Http\Controllers\CashPickupController::class, 'restore'])->name('cash-pickups.restore');

Route::apiResource('wallet-transfers', \Fintech\Remit\Http\Controllers\WalletTransferController::class)->except('update', 'destroy');
//Route::post('wallet-transfers/{wallet_transfer}/restore', [\Fintech\Remit\Http\Controllers\WalletTransferController::class, 'restore'])->name('wallet-transfers.restore');

Route::post('wallet-verification', \Fintech\Remit\Http\Controllers\WalletVerificationController::class)->name('wallet-verification');
->middleware(config('fintech.auth.middleware'))->group(function () {
if (Core::packageExists('Transaction')) {
Route::get('assignable-vendors/{order_id}', [AssignVendorController::class, 'available'])
->name('assignable-vendors.available');
}
Route::apiResource('bank-transfers', BankTransferController::class)->except('update', 'destroy');
Route::apiResource('cash-pickups', CashPickupController::class)->except('update', 'destroy');
Route::apiResource('wallet-transfers', WalletTransferController::class)->except('update', 'destroy');
Route::post('wallet-verification', WalletVerificationController::class)->name('wallet-verification');

//DO NOT REMOVE THIS LINE//
});
Expand Down
Loading
Loading