Adjust custom gateway labels

This commit is contained in:
Hillel Coren 2018-04-13 16:48:07 +03:00
parent 77b97a7195
commit 6a15c72f45
3 changed files with 10 additions and 11 deletions

View File

@ -136,7 +136,6 @@ class AddMoreCustomFields extends Migration
$table->string('ip')->nullable();
});
DB::statement('UPDATE gateways SET provider = "Custom1" WHERE id = 62');
DB::statement('UPDATE gateway_types SET alias = "custom1", name = "Custom 1" WHERE id = 6');
}

View File

@ -14,18 +14,18 @@ class GatewayTypesSeeder extends Seeder
['alias' => 'paypal', 'name' => 'PayPal'],
['alias' => 'bitcoin', 'name' => 'Bitcoin'],
['alias' => 'dwolla', 'name' => 'Dwolla'],
['alias' => 'custom1', 'name' => 'Custom 1'],
['alias' => 'custom1', 'name' => 'Custom'],
['alias' => 'alipay', 'name' => 'Alipay'],
['alias' => 'sofort', 'name' => 'Sofort'],
['alias' => 'sepa', 'name' => 'SEPA'],
['alias' => 'gocardless', 'name' => 'GoCardless'],
['alias' => 'apple_pay', 'name' => 'Apple Pay'],
['alias' => 'custom2', 'name' => 'Custom 2'],
['alias' => 'custom3', 'name' => 'Custom 3'],
['alias' => 'custom2', 'name' => 'Custom'],
['alias' => 'custom3', 'name' => 'Custom'],
];
foreach ($gateway_types as $gateway_type) {
$record = GatewayType::where('name', '=', $gateway_type['name'])->first();
$record = GatewayType::where('alias', '=', $gateway_type['alias'])->first();
if (! $record) {
GatewayType::create($gateway_type);
}

File diff suppressed because one or more lines are too long