@include('helpers.form_control', [
'type' => 'select',
'name' => 'environment',
'value' => $gateway->getEnvironment(),
'label' => trans('cashier::messages.braintree.environment'),
'help_class' => 'payment',
'options' => [['text' => 'Sandbox', 'value' => 'sandbox'],['text' => 'Production', 'value' => 'production']],
'rules' => ['environment' => 'required'],
])
@include('helpers.form_control', [
'type' => 'text',
'name' => 'merchant_id',
'value' => $gateway->getMerchantId(),
'label' => trans('cashier::messages.braintree.merchant_id'),
'help_class' => 'payment',
'rules' => ['merchant_id' => 'required'],
])
@include('helpers.form_control', [
'type' => 'text',
'name' => 'public_key',
'value' => $gateway->getPublicKey(),
'label' => trans('cashier::messages.braintree.public_key'),
'help_class' => 'payment',
'rules' => ['public_key' => 'required'],
])
@include('helpers.form_control', [
'type' => 'text',
'name' => 'private_key',
'value' => $gateway->getPrivateKey(),
'label' => trans('cashier::messages.braintree.private_key'),
'help_class' => 'payment',
'rules' => ['private_key' => 'required'],
])