Payment Gateway Form
(*)Fields are Mandatory
{!! Form::select('paypal_enabled', array('0' => 'No', '1' => 'Yes'), '', ['class' => 'form-control', 'id' => 'input_paypal_enabled', 'ng-model' => 'paypal_enabled']) !!}
{{ $errors->first('paypal_enabled') }}
{!! Form::select('paypal_mode', array('sandbox' => 'Sandbox', 'live' => 'Live'), old('paypal_mode',payment_gateway('mode','Paypal')), ['class' => 'form-control', 'id' => 'input_paypal_mode']) !!}
{{ $errors->first('paypal_mode') }}
{!! Form::text('paypal_id', old('paypal_id',payment_gateway('paypal_id','Paypal')), ['class' => 'form-control', 'id' => 'input_paypal_id', 'placeholder' => 'PayPal Id']) !!}
{{ $errors->first('paypal_id') }}
{!! Form::text('paypal_client', old('paypal_client',payment_gateway('client','Paypal')), ['class' => 'form-control', 'id' => '', 'placeholder' => 'PayPal Client']) !!}
{{ $errors->first('paypal_client') }}
{!! Form::text('paypal_secret', old('paypal_secret',payment_gateway('secret','Paypal')), ['class' => 'form-control', 'id' => '', 'placeholder' => 'PayPal Secret']) !!}
{{ $errors->first('paypal_secret') }}
{!! Form::text('paypal_access_token', old('paypal_access_token',payment_gateway('access_token','Paypal')), ['class' => 'form-control', 'id' => 'accessToken', 'placeholder' => 'PayPal Access Token']) !!}
{{ $errors->first('paypal_access_token') }}
{!! Form::select('stripe_enabled', array('0' => 'No', '1' => 'Yes'), old('stripe_enabled',payment_gateway('is_enabled','Stripe')), ['class' => 'form-control', 'id' => 'input_stripe_enabled','ng-model' => 'stripe_enabled']) !!}
{{ $errors->first('stripe_enabled') }}
{!! Form::text('stripe_publish_key', old('stripe_publish_key',payment_gateway('publish','Stripe')), ['class' => 'form-control', 'id' => 'input_stripe_publish_key', 'placeholder' => 'Stripe Key']) !!}
{{ $errors->first('stripe_publish_key') }}
{!! Form::text('stripe_secret_key', old('stripe_secret_key',payment_gateway('secret','Stripe')), ['class' => 'form-control', 'id' => 'input_stripe_secret_key', 'placeholder' => 'Stripe Secret']) !!}
{{ $errors->first('stripe_secret_key') }}
{!! Form::text('stripe_api_version', old('stripe_api_version',payment_gateway('api_version','Stripe')), ['class' => 'form-control', 'id' => 'input_stripe_api_version', 'placeholder' => 'Stripe API Version']) !!}
{{ $errors->first('stripe_api_version') }}
{!! Form::select('paytm_enabled', array('0' => 'No', '1' => 'Yes'), '', ['class' => 'form-control', 'id' => 'input_paytm_enabled', 'ng-model' => 'paytm_enabled']) !!}
{{ $errors->first('paytm_enabled') }}
{!! Form::select('paytm_mode', array('local' => 'Sandbox', 'live' => 'Live'), old('paytm_mode',payment_gateway('mode','Paytm')), ['class' => 'form-control', 'id' => 'input_paytm_mode']) !!}
{{ $errors->first('paytm_mode') }}
{!! Form::text('paytm_id', old('paytm_id',payment_gateway('merchant_id','Paytm')), ['class' => 'form-control', 'id' => 'input_paytm_id', 'placeholder' => 'paytm merchant Id']) !!}
{{ $errors->first('paytm_id') }}
{!! Form::text('paytm_key', old('paytm_key',payment_gateway('key','Paytm')), ['class' => 'form-control', 'id' => '', 'placeholder' => 'paytm key']) !!}
{{ $errors->first('paytm_key') }}
{!! Form::text('paytm_website', old('paytm_website',payment_gateway('website','Paytm')), ['class' => 'form-control', 'id' => '', 'placeholder' => 'paytm merchant website']) !!}
{{ $errors->first('paytm_website') }}
{!! Form::text('paytm_channel', old('paytm_channel',payment_gateway('channel','Paytm')), ['class' => 'form-control', 'id' => '', 'placeholder' => 'paytm merchant channel']) !!}
{{ $errors->first('paytm_channel') }}
{!! Form::text('paytm_type', old('paytm_type',payment_gateway('type','Paytm')), ['class' => 'form-control', 'id' => '', 'placeholder' => 'paytm industry type']) !!}
{{ $errors->first('paytm_type') }}
{!! Form::select('razorpay_enabled', array('0' => 'No', '1' => 'Yes'), old('razorpay_enabled',payment_gateway('is_enabled','Razorpay')), ['class' => 'form-control', 'id' => 'input_razorpay_enabled','ng-model' => 'razorpay_enabled']) !!}
{{ $errors->first('razorpay_enabled') }}
{!! Form::select('razorpay_mode', array('sandbox' => 'Sandbox', 'live' => 'Live'), old('razorpay_mode',payment_gateway('mode','Razorpay')), ['class' => 'form-control', 'id' => 'input_razorpay_mode']) !!}
{{ $errors->first('razorpay_mode') }}
{!! Form::text('razorpay_publish_key', old('razorpay_publish_key',payment_gateway('key','Razorpay')), ['class' => 'form-control', 'id' => 'input_razorpay_publish_key', 'placeholder' => 'Razorpay Key']) !!}
{{ $errors->first('razorpay_publish_key') }}
{!! Form::text('razorpay_secret_key', old('razorpay_secret_key',payment_gateway('secret','Razorpay')), ['class' => 'form-control', 'id' => 'input_razorpay_secret_key', 'placeholder' => 'Razorpay Secret']) !!}
{{ $errors->first('razorpay_secret_key') }}
{!! Form::select('flutterwave_enabled', array('0' => 'No', '1' => 'Yes'), old('flutterwave_enabled',payment_gateway('is_enabled','Flutterwave')), ['class' => 'form-control', 'id' => 'input_flutterwave_enabled','ng-model' => 'flutterwave_enabled']) !!}
{{ $errors->first('flutterwave_enabled') }}
{!! Form::text('flutterwave_publish_key', old('flutterwave_publish_key',payment_gateway('key','Flutterwave')), ['class' => 'form-control', 'id' => 'input_flutterwave_publish_key', 'placeholder' => 'Flutterwave Key']) !!}
{{ $errors->first('flutterwave_publish_key') }}
{!! Form::text('flutterwave_secret_key', old('flutterwave_secret_key',payment_gateway('secret','Flutterwave')), ['class' => 'form-control', 'id' => 'input_flutterwave_secret_key', 'placeholder' => 'Flutterwave Secret']) !!}
{{ $errors->first('flutterwave_secret_key') }}
{!! Form::text('flutterwave_hash_key', old('flutterwave_hash_key',payment_gateway('hash','Flutterwave')), ['class' => 'form-control', 'id' => 'input_flutterwave_hash_key', 'placeholder' => 'Flutterwave Hash']) !!}
{{ $errors->first('flutterwave_hash_key') }}
{!! Form::select('redsys_enabled', array('0' => 'No', '1' => 'Yes'), '', ['class' => 'form-control', 'id' => 'input_redsys_enabled', 'ng-model' => 'redsys_enabled']) !!}
{{ $errors->first('redsys_enabled') }}
{!! Form::select('redsys_enviroment', array('test' => 'Test', 'live' => 'Live'), old('redsys_enviroment',payment_gateway('mode','Paytm')), ['class' => 'form-control', 'id' => 'input_redsys_enviroment']) !!}
{{ $errors->first('redsys_enviroment') }}
{!! Form::text('redsys_merchant_code', old('redsys_merchant_code',payment_gateway('merchant_code','Redsys')), ['class' => 'form-control', 'id' => 'input_redsys_merchant_code', 'placeholder' => 'redsys merchant code']) !!}
{{ $errors->first('redsys_merchant_code') }}
{!! Form::text('redsys_key', old('redsys_key',payment_gateway('key','Redsys')), ['class' => 'form-control', 'id' => '', 'placeholder' => 'redsys key']) !!}
{{ $errors->first('redsys_key') }}
{!! Form::text('redsys_terminal', old('redsys_terminal',payment_gateway('terminal','Redsys')), ['class' => 'form-control', 'id' => '', 'placeholder' => 'redsys terminal']) !!}
{{ $errors->first('redsys_terminal') }}
{!! Form::text('redsys_url_notification', old('redsys_url_notification',payment_gateway('url_notification','Redsys')), ['class' => 'form-control', 'id' => '', 'placeholder' => 'redsys url notification']) !!}
{{ $errors->first('redsys_url_notification') }}
{!! Form::text('redsys_url_ok', old('redsys_url_notification',payment_gateway('url_ok','Redsys')), ['class' => 'form-control', 'id' => '', 'placeholder' => 'redsys url ok']) !!}
{{ $errors->first('redsys_url_ok') }}
{!! Form::text('redsys_url_ko', old('redsys_url_notification',payment_gateway('url_ko','Redsys')), ['class' => 'form-control', 'id' => '', 'placeholder' => 'redsys url ko']) !!}
{{ $errors->first('redsys_url_ko') }}
{!! Form::text('redsys_tradename', old('redsys_tradename',payment_gateway('tradename','Redsys')), ['class' => 'form-control', 'id' => '', 'placeholder' => 'redsys trade name']) !!}
{{ $errors->first('redsys_tradename') }}
{!! Form::select('bt_enabled', array('0' => 'No', '1' => 'Yes'), old('bt_enabled',payment_gateway('is_enabled','Braintree')), ['class' => 'form-control', 'id' => 'input_bt_enabled','ng-model' => 'bt_enabled']) !!}
{{ $errors->first('bt_enabled') }}
{!! Form::select('bt_mode', array('sandbox' => 'Sandbox', 'production' => 'Production'), old('bt_mode'
,payment_gateway('mode','Braintree')), ['class' => 'form-control', 'id' => 'input_mode']) !!}
{{ $errors->first('mode') }}
{!! Form::text('bt_merchant_id', old('bt_merchant_id',payment_gateway('merchant_id','Braintree')), ['class' => 'form-control', 'id' => 'input_merchant_id', 'placeholder' => 'Merchant ID']) !!}
{{ $errors->first('bt_merchant_id') }}
{!! Form::text('merchant_account_id', old('merchant_account_id', payment_gateway('merchant_account_id','Braintree')), ['class'=>'form-control', 'id'=>'input_merchant_account_id', 'placeholder'=>'Braintree Merchant Account Id']) !!}
For default account id, leave it as empty.
{!! Form::text('bt_public_key', old('bt_public_key',payment_gateway('public_key','Braintree')), ['class' => 'form-control', 'id' => 'input_bt_public', 'placeholder' => 'Public Key']) !!}
{{ $errors->first('bt_public_key') }}
{!! Form::text('bt_private_key', old('bt_private_key',payment_gateway('private_key','Braintree')), ['class' => 'form-control', 'id' => 'input_bt_private_key', 'placeholder' => 'Private Key']) !!}
{{ $errors->first('bt_private_key') }}
{!! Form::text('tokenization_key', old('tokenization_key',payment_gateway('tokenization_key','Braintree')), ['class'=>'form-control', 'id'=>'input_tokenization_key', 'placeholder'=>'Braintree Tokenization Key']) !!}
{{ $errors->first('tokenization_key') }}
@foreach(PAYOUT_METHODS as $payout_method)
@endforeach