function stripe_customer_livemode in Stripe 7
Check for our current Stripe Live mode, and then return an int value that the Database API can use.
return int
1 call to stripe_customer_livemode()
- stripe_customer_get_id in stripe_customer/
stripe_customer.module - Retrieve a Stripe customer_id for a user, if available.
File
- stripe_customer/
stripe_customer.module, line 315 - Provides integration with Stripe and Drupal Users as Customers.
Code
function stripe_customer_livemode() {
return !empty(tg_stripe_live()) ? 1 : 0;
}