You are here

function uc_paypal_ec_form in Ubercart 6.2

Same name and namespace in other branches
  1. 5 payment/uc_paypal/uc_paypal.module \uc_paypal_ec_form()
  2. 7.3 payment/uc_paypal/uc_paypal.module \uc_paypal_ec_form()

Returns the form for Express Checkout Shortcut Flow.

See also

uc_paypal_ec_form_submit()

1 string reference to 'uc_paypal_ec_form'
uc_paypal_cart_pane in payment/uc_paypal/uc_paypal.module
Implements hook_cart_pane().

File

payment/uc_paypal/uc_paypal.module, line 736
Integrates various PayPal payment services and Instant Payment Notifications (IPN) with Ubercart!

Code

function uc_paypal_ec_form() {

  // Hack to allow the image button to submit.
  if (isset($_POST['submit_x'])) {
    $form['submit'] = array(
      '#type' => 'submit',
      '#value' => 'submit',
    );
  }
  $form['submit_image'] = array(
    '#value' => '<input name="submit" type="image" title="' . t('Checkout with PayPal.') . '" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckoutsm.gif">',
  );
  return $form;
}