function commerce_paypal_checkout_default_settings in Commerce PayPal 7.2
Returns the default settings for the PayPal Checkout payment method.
3 calls to commerce_paypal_checkout_default_settings()
- commerce_paypal_checkout_redirect_form_validate in modules/
checkout/ commerce_paypal_checkout.module - Payment method callback: redirect form return validation.
- commerce_paypal_checkout_settings_form in modules/
checkout/ commerce_paypal_checkout.module - Payment method callback: settings form.
- theme_commerce_paypal_checkout_smart_payment_buttons in modules/
checkout/ commerce_paypal_checkout.module - Returns HTML for the Smart payment buttons.
File
- modules/
checkout/ commerce_paypal_checkout.module, line 234 - Implements PayPal Checkout in Drupal Commerce checkout.
Code
function commerce_paypal_checkout_default_settings() {
$default_settings = array(
'client_id' => '',
'secret' => '',
'server' => 'sandbox',
'intent' => 'capture',
'disable_funding' => array(),
'disable_card' => array(),
'shipping_preference' => 'get_from_file',
'update_billing_profiles' => TRUE,
'style' => array(),
'enable_on_cart' => TRUE,
);
if (module_exists('commerce_shipping')) {
$default_settings['update_shipping_profiles'] = TRUE;
}
return $default_settings;
}