function uc_payment_method_paypal_ec in Ubercart 5
Same name and namespace in other branches
- 6.2 payment/uc_paypal/uc_paypal.module \uc_payment_method_paypal_ec()
- 7.3 payment/uc_paypal/uc_paypal.module \uc_payment_method_paypal_ec()
1 string reference to 'uc_payment_method_paypal_ec'
- uc_paypal_payment_method in payment/
uc_paypal/ uc_paypal.module - Implementation of hook_payment_method().
File
- payment/
uc_paypal/ uc_paypal.module, line 552 - Integrates various PayPal payment services and Instant Payment Notifications (IPN) with Ubercart!
Code
function uc_payment_method_paypal_ec($op, &$arg1) {
switch ($op) {
case 'order-view':
$txn_id = db_result(db_query("SELECT txn_id FROM {uc_payment_paypal_ipn} WHERE order_id = %d ORDER BY received ASC", $arg1->order_id));
if (empty($txn_id)) {
$txn_id = t('Unknown');
}
return t('Transaction ID:<br />@txn_id', array(
'@txn_id' => $txn_id,
));
case 'settings':
$form['redirect'] = array(
'#value' => '<div>' . t('For Express Checkout, you need to <a href="!cp_link">enable the cart pane</a> and <a href="!wpp_link">configure the Website Payments Pro settings</a>.', array(
'!cp_link' => url('admin/store/settings/cart/edit/panes'),
'!wpp_link' => url('admin/store/settings/payment/edit/gateways'),
)) . '</div>',
);
return $form;
}
}