You are here

function _uc_stripe_get_payment_id in Ubercart Stripe 7.3

Retrieve the Stripe payment id for a user

Parameters

$uid:

Return value

bool

2 calls to _uc_stripe_get_payment_id()
uc_stripe_authenticate_payment_form in ./uc_stripe.pages.inc
Implements hook_form().
uc_stripe_renew in ./uc_stripe.module
Handle renewing a recurring fee, called by uc_recurring

File

./uc_stripe.module, line 979
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_get_payment_id($uid) {
  $account = user_load($uid);
  $id = !empty($account->data['uc_stripe_payment_id']) ? $account->data['uc_stripe_payment_id'] : FALSE;
  return $id;
}