2016-08-12 12:02:37 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
|
|
class PaymentGatewaySeeder extends Seeder
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Run the database seeds.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function run()
|
|
|
|
|
{
|
|
|
|
|
$payment_gateways = [
|
|
|
|
|
[
|
|
|
|
|
'id' => 1,
|
|
|
|
|
'name' => 'Stripe',
|
|
|
|
|
'provider_name' => 'Stripe',
|
|
|
|
|
'provider_url' => 'https://www.stripe.com',
|
|
|
|
|
'is_on_site' => 1,
|
|
|
|
|
'can_refund' => 1,
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'id' => 2,
|
|
|
|
|
'name' => 'PayPal_Express',
|
|
|
|
|
'provider_name' => 'PayPal Express',
|
|
|
|
|
'provider_url' => 'https://www.paypal.com',
|
|
|
|
|
'is_on_site' => 0,
|
|
|
|
|
'can_refund' => 0
|
|
|
|
|
|
2018-09-15 19:17:51 +00:00
|
|
|
]
|
2016-08-12 12:02:37 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
DB::table('payment_gateways')->insert($payment_gateways);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|