PaymentSession
Represents a single start-to-finish payment operation.
See Using Android basic integration for more information.
If PaymentSessionConfig.shouldPrefetchCustomer is true
, and the customer has previously selected a payment method, PaymentSessionData.paymentMethod will be updated with the payment method and PaymentSessionListener.onPaymentSessionDataChanged will be called.
Constructors
Types
Represents a listener for PaymentSession actions, used to update the host activity when necessary.
Functions
Clear the payment method associated with this PaymentSession in PaymentSessionData.
Method to handle Activity results from Stripe activities. Pass data here from your host's #onActivityResult(int, int, Intent)
function.
Initialize the PaymentSession with a PaymentSessionListener to be notified of data changes. The reference to the listener will be released when the host (i.e. Activity
or Fragment
) is destroyed.
Notify this payment session that it is complete
Launch the PaymentMethodsActivity to allow the user to select a payment method, or to add a new one.
Launch the PaymentFlowActivity to allow the user to fill in payment details.
Set the cart total for this PaymentSession. This should not include shipping costs.