function _uc_stripe_get_customer_id in Ubercart Stripe 7.3
Same name and namespace in other branches
- 6.2 uc_stripe.module \_uc_stripe_get_customer_id()
- 7.2 uc_stripe.module \_uc_stripe_get_customer_id()
Retrieve the Stripe customer id for a user
Parameters
$uid:
Return value
bool
4 calls to _uc_stripe_get_customer_id()
- uc_stripe_authenticate_payment_form in ./
uc_stripe.pages.inc - Implements hook_form().
- uc_stripe_order_pane_stripe in ./
uc_stripe.module - Implements uc_order_pane_callback() specified in 'callback' of uc_stripe_uc_order_pane()
- uc_stripe_renew in ./
uc_stripe.module - Handle renewing a recurring fee, called by uc_recurring
- _uc_stripe_confirm_payment in ./
uc_stripe.module - Ajax page callback for callback uc_stripe/ajax/confirm_payment page This is used to send payment and intent status back to JS client
File
- ./
uc_stripe.module, line 965 - 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_customer_id($uid) {
$account = user_load($uid);
$id = !empty($account->data['uc_stripe_customer_id']) ? $account->data['uc_stripe_customer_id'] : FALSE;
return $id;
}