edds_get_stripe_customer_id( int $id_or_email, bool $by_user_id = true )

Look up the stripe customer id in user meta, and look to recurring if not found yet


Description Description


Parameters Parameters

$id_or_email

(Required) The user ID, customer ID or email to look up.

$by_user_id

(Optional) If the lookup is by user ID or not.

Default value: true


Top ↑

Return Return

(string) Stripe customer ID


Top ↑

Source Source

File: includes/gateways/stripe/includes/functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.6 Added lazy load for moving to customer meta and ability to look up by customer ID.
2.4.4 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.