CustomerSession
Deprecated
Please use Mobile Payment Element instead. If you are already using Basic Integration, learn how to migrate here: https://docs.stripe.com/payments/mobile/migrating-to-mobile-payment-element-from-basic-integration
Represents a logged-in session of a single Customer.
Types
Properties
A cached Customer, or null
if the current customer has expired.
Functions
Add the Source to the current customer.
Attaches a PaymentMethod to a customer.
Delete the Source from the current customer.
Detaches a PaymentMethod from a customer.
Retrieves all of the customer's PaymentMethod objects, filtered by a PaymentMethod.Type.
Retrieve the current Customer. If customer is not stale, this returns immediately with the cache. If not, it fetches a new value and returns that to the listener.
Set the default Source of the current customer.
Set the shipping information on the current customer.
Force an update of the current customer, regardless of how much time has passed.