function uc_paypal_uc_payment_gateway in Ubercart 7.3
Implements hook_uc_payment_gateway().
File
- payment/
uc_paypal/ uc_paypal.module, line 90 - Integrates various PayPal payment services and Instant Payment Notifications (IPN) with Ubercart!
Code
function uc_paypal_uc_payment_gateway() {
if (!module_exists('uc_credit')) {
drupal_set_message(t('You must <a href="@modules">enable the Credit Card module</a> to use PayPal Website Payments Pro.', array(
'@modules' => url('admin/modules', array(
'fragment' => 'edit-modules-ubercart-payment',
)),
)), 'warning');
return;
}
$gateways['paypal_wpp'] = array(
'title' => t('PayPal Website Payments Pro'),
'description' => t('Process credit card payments using Website Payments Pro.'),
'settings' => 'uc_paypal_wpp_settings_form',
'credit' => 'uc_paypal_wpp_charge',
'credit_txn_types' => array(
UC_CREDIT_AUTH_ONLY,
UC_CREDIT_PRIOR_AUTH_CAPTURE,
UC_CREDIT_AUTH_CAPTURE,
),
);
return $gateways;
}