You are here

function commerce_paypal_wps_default_settings in Commerce PayPal 7.2

Same name and namespace in other branches
  1. 7 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 37
Implements PayPal Website Payments Standard in Drupal Commerce checkout.

Code

function commerce_paypal_wps_default_settings() {
  $default_currency = commerce_default_currency();
  return array(
    'business' => '',
    'currency_code' => in_array($default_currency, array_keys(commerce_paypal_currencies('paypal_wps'))) ? $default_currency : 'USD',
    'allow_supported_currencies' => FALSE,
    'language' => 'US',
    'server' => 'sandbox',
    'payment_action' => 'sale',
    'ipn_logging' => 'notification',
    'receiver_emails' => '',
    'ipn_create_billing_profile' => FALSE,
    'show_payment_instructions' => FALSE,
  );
}