Blogs

paypal_logo_payment_page

  Drupal Ubercart: add your logo to PayPal payment page

Publicidad Google

Drupal Ubercart: add your logo or other image to the payment page:

paypal_logo_payment_page

PayPal Website Payments Standard:

File: ./modules/ubercart/payment/uc_paypal/uc_paypal.module

Add in: function uc_paypal_wps_form($form_state, $order)

After:

    // Display information
    'cancel_return' => url('uc_paypal/wps/cancel', array('absolute' => TRUE)),
    'no_note' => 1,
    'no_shipping' => variable_get('uc_paypal_wps_no_shipping', 1),
    'return' => url('uc_paypal/wps/complete/'. $order->order_id, array('absolute' => TRUE)),
    'rm' => 1,

    /* add image_url PayPal checkout page variables */
    'image_url' => 'http://yourdomain.com/url your logo', 

    ...

PayPal Express Checkout

File: ./modules/ubercart/payment/uc_paypal/uc_paypal.pages.inc

Add in: function uc_paypal_ec_review_form($form_state, $order)

After:

    // Fake the checkout form delivery information.
    $form['delivery_first_name'] = array('#type' => 'hidden', '#value' => $order->delivery_first_name);
    $form['delivery_last_name'] = array('#type' => 'hidden', '#value' => $order->delivery_last_name);
    $form['delivery_company'] = array('#type' => 'hidden', '#value' => $order->delivery_company);
    $form['delivery_street1'] = array('#type' => 'hidden', '#value' => $order->delivery_street1);
    $form['delivery_street2'] = array('#type' => 'hidden', '#value' => $order->delivery_street2);
    $form['delivery_city'] = array('#type' => 'hidden', '#value' => $order->delivery_city);
    $form['delivery_postal_code'] = array('#type' => 'hidden', '#value' => $order->delivery_postal_code);
    $form['delivery_phone'] = array('#type' => 'hidden', '#value' => $order->delivery_phone);

    /* add image_url PayPal checkout page variables */
    $form['image_url'] = array('#type' => 'hidden', '#value' => 'http://yourdomain.com/url your logo');

    ...