From 510f5cffac177021b4e6565fc5349696c1c287f5 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 18 May 2016 11:05:00 +0300 Subject: [PATCH] Auto populate Stripe keys for testing --- resources/views/accounts/account_gateway.blade.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/views/accounts/account_gateway.blade.php b/resources/views/accounts/account_gateway.blade.php index 155ef6579f69..cfad9f21a6b6 100644 --- a/resources/views/accounts/account_gateway.blade.php +++ b/resources/views/accounts/account_gateway.blade.php @@ -44,6 +44,11 @@ {!! Former::populateField('gateway_id', GATEWAY_STRIPE) !!} {!! Former::populateField('show_address', 1) !!} {!! Former::populateField('update_address', 1) !!} + + @if (Utils::isNinjaDev()) + {!! Former::populateField('23_apiKey', env('STRIPE_TEST_SECRET_KEY')) !!} + {!! Former::populateField('publishable_key', env('STRIPE_TEST_PUBLISHABLE_KEY')) !!} + @endif @endif {!! Former::select('payment_type_id') @@ -268,4 +273,4 @@ -@stop \ No newline at end of file +@stop