-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from AfzalSabbir/build-0
It's time to publish
- Loading branch information
Showing
19 changed files
with
2,029 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
// SSLCommerz configuration | ||
return [ | ||
'projectPath' => env('PROJECT_PATH'), | ||
// For Sandbox, use "https://sandbox.sslcommerz.com" | ||
// For Live, use "https://securepay.sslcommerz.com" | ||
'apiDomain' => env("API_DOMAIN_URL", "https://sandbox.sslcommerz.com"), | ||
'apiCredentials' => [ | ||
'store_id' => env("STORE_ID"), | ||
'store_password' => env("STORE_PASSWORD"), | ||
], | ||
'apiUrl' => [ | ||
'make_payment' => "/gwprocess/v4/api.php", | ||
'transaction_status' => "/validator/api/merchantTransIDvalidationAPI.php", | ||
'order_validate' => "/validator/api/validationserverAPI.php", | ||
'refund_payment' => "/validator/api/merchantTransIDvalidationAPI.php", | ||
'refund_status' => "/validator/api/merchantTransIDvalidationAPI.php", | ||
], | ||
'connect_from_localhost' => env("IS_LOCALHOST", true), // For Sandbox, use "true", For Live, use "false" | ||
'success_url' => '/success', | ||
'failed_url' => '/fail', | ||
'cancel_url' => '/cancel', | ||
'ipn_url' => '/ipn', | ||
]; |
50 changes: 50 additions & 0 deletions
50
database/migrations/2022_09_11_134122_create_orders_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration { | ||
/** | ||
* CREATE TABLE `orders` ( | ||
* `id` int(11) NOT NULL, | ||
* `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, | ||
* `email` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, | ||
* `phone` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, | ||
* `amount` double DEFAULT NULL, | ||
* `address` text COLLATE utf8_unicode_ci, | ||
* `status` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, | ||
* `transaction_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, | ||
* `currency` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL | ||
* ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
* | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::create('orders', function (Blueprint $table) { | ||
$table->id(); | ||
$table->string('name', 191)->nullable(); | ||
$table->string('email', 100)->nullable(); | ||
$table->string('phone', 20)->nullable(); | ||
$table->double('amount')->nullable(); | ||
$table->text('address')->nullable(); | ||
$table->string('status', 10)->nullable(); | ||
$table->string('transaction_id', 191)->nullable(); | ||
$table->string('currency', 20)->nullable(); | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::dropIfExists('orders'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(function (window, document) { | ||
var loader = function () { | ||
var script = document.createElement("script"), tag = document.getElementsByTagName("script")[0]; | ||
script.src = "https://seamless-epay.sslcommerz.com/embed.min.js?" + Math.random().toString(36).substring(7); | ||
tag.parentNode.insertBefore(script, tag); | ||
}; | ||
|
||
window.addEventListener ? window.addEventListener("load", loader, false) : window.attachEvent("onload", loader); | ||
})(window, document); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(function (window, document) { | ||
var loader = function () { | ||
var script = document.createElement("script"), tag = document.getElementsByTagName("script")[0]; | ||
script.src = "https://sandbox.sslcommerz.com/embed.min.js?" + Math.random().toString(36).substring(7); | ||
tag.parentNode.insertBefore(script, tag); | ||
}; | ||
|
||
window.addEventListener ? window.addEventListener("load", loader, false) : window.attachEvent("onload", loader); | ||
})(window, document); |
Oops, something went wrong.