You are here

function uc_stripe_uc_payment_gateway in Ubercart Stripe 7.3

Same name and namespace in other branches
  1. 7 uc_stripe.module \uc_stripe_uc_payment_gateway()
  2. 7.2 uc_stripe.module \uc_stripe_uc_payment_gateway()

Implements hook_payment_gateway to register this payment gateway

Return value

array

File

./uc_stripe.module, line 84
A stripe.js PCI-compliant payment gateway Forked from Bitcookie's work (thanks!) which was posted at http://bitcookie.com/blog/pci-compliant-ubercart-and-stripe-js from discussion in the uc_stripe issue queue, https://www.drupal.org/node/1467886

Code

function uc_stripe_uc_payment_gateway() {
  $gateways = array();
  $gateways[] = array(
    'id' => 'uc_stripe',
    'title' => t('Stripe Gateway'),
    'description' => t('Process card payments using Stripe JS.'),
    'settings' => 'uc_stripe_settings_form',
    'credit' => 'uc_stripe_charge',
  );
  return $gateways;
}