function commerce_paypal_wps_default_settings in Commerce PayPal 7
Same name and namespace in other branches
- 7.2 modules/wps/commerce_paypal_wps.module \commerce_paypal_wps_default_settings()
Returns the default settings for the PayPal WPS payment method.
1 call to commerce_paypal_wps_default_settings()
- commerce_paypal_wps_settings_form in modules/
wps/ commerce_paypal_wps.module - Payment method callback: settings form.
File
- modules/
wps/ commerce_paypal_wps.module, line 36 - Implements PayPal Website Payments Standard in Drupal Commerce checkout.
Code
function commerce_paypal_wps_default_settings() {
$default_currency = variable_get('commerce_default_currency', 'USD');
return array(
'business' => '',
'currency_code' => in_array($default_currency, array_keys(commerce_paypal_wps_currencies())) ? $default_currency : 'USD',
'allow_supported_currencies' => FALSE,
'language' => 'US',
'server' => 'sandbox',
'payment_action' => 'sale',
'ipn_logging' => 'notification',
'show_payment_instructions' => FALSE,
'ipn_create_billing_profile' => FALSE,
);
}