Many users don't realize a Paypal account is not required to pay by credit or debit card via Paypal. This patch (based on COD module) allows the admin to customize the Paypal title and description to say eg Credit / Debit / Paypal or whatever they want.

function paypal_ec_settings() {

+ $form['paypal_title'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Title to use for Paypal'),
+ '#default_value' => variable_get('paypal_title', t('paypal')),
+ '#size' => 70,
+ '#maxlength' => 780,
+ '#weight' => -1,
+ '#desciption' => t('Description to show shoppers for this type of payment.')
+ );

$form['paypal_receiver_email'] = array( '#type' => 'textfield', '#title' => t('PayPal Receiver Email'),'#default_value' => variable_get('paypal_receiver_email', variable_get('site_mail', ini_get('sendmail_from'))), '#size' => 70, '#maxlength' => 180, '#description' => t('Primary email address of the payment recipent. This is also your main paypal email address.') );

.
.
.

case 'display name':

- return t('PayPal');
+ return variable_get('paypal_title', t('paypal'));;

case 'on checkout':

Comments

gordon’s picture

Status: Needs review » Fixed

This has been fixed in v4

Anonymous’s picture

Status: Fixed » Closed (fixed)