function commerce_payflow_link_default_settings in Commerce PayPal 7.2
Returns the default settings for the PayPal WPS payment method.
3 calls to commerce_payflow_link_default_settings()
- commerce_payflow_form_alter in modules/
payflow/ commerce_payflow.module - Implements hook_form_alter().
- commerce_payflow_link_settings_form in modules/
payflow/ commerce_payflow.module - Payment method callback: settings form.
- commerce_paypal_ppa_settings_form in modules/
payflow/ commerce_payflow.module - Payment method callback: settings form.
File
- modules/
payflow/ commerce_payflow.module, line 290 - Implements PayPal Payments Advanced (U.S. only) and Payflow Link Hosted Checkout pages and Transparent Redirect.
Code
function commerce_payflow_link_default_settings() {
$default_currency = commerce_default_currency();
return array(
'partner' => 'PayPal',
'vendor' => '',
'user' => '',
'password' => '',
'mode' => 'test',
'trxtype' => 'S',
'currency_code' => in_array($default_currency, array_keys(commerce_paypal_currencies('payflow_link'))) ? $default_currency : 'USD',
'allow_supported_currencies' => FALSE,
'payment_icons' => drupal_map_assoc(array_keys(array_diff_key(commerce_paypal_payment_methods(), array(
'echeck' => '',
)))),
'redirect_mode' => 'iframe',
'cancel_link' => TRUE,
'paypal_ec_instance' => '',
'paypal_ec_disable' => TRUE,
'reference_transactions' => FALSE,
'ba_desc' => '',
'show_payment_instructions' => FALSE,
'emailcustomer' => FALSE,
'log' => array(
'request' => 0,
'response' => 0,
),
'silent_post_logging' => 'notification',
);
}