PaymentSession
Create a PaymentSession attached to the given host Activity.
Parameters
activity
a ComponentActivity
from which to launch other Stripe Activities. This Activity will receive results in Activity#onActivityResult(int, int, Intent)
that should be passed back to this session.
config
a PaymentSessionConfig that configures this PaymentSession instance
Create a PaymentSession attached to the given host Fragment.
Parameters
fragment
a Fragment
from which to launch other Stripe Activities. This Fragment will receive results in Fragment#onActivityResult(int, int, Intent)
that should be passed back to this session.
config
a PaymentSessionConfig that configures this PaymentSession instance