purchase
Launches the purchase flow for a product, letting the library pick the offer (the configured trial offer if any, otherwise Play's last offer).
See also
to buy one specific offer.
Launches the purchase flow for one specific offer of a product.
Use this when the paywall shows more than one offer for the same product — a full price alongside a launch discount, or several subscription base plans — and must buy exactly the one the user tapped. Pass the token from getOfferToken or getOfferToken.
When offerToken is null this behaves exactly like purchase.
Return
a human-readable result string; "Billing flow started" on success.
Since
4.4.0
Parameters
the launching activity; must not be finishing.
Play product id.
offer token to buy, or null to let the library choose.
Launches the purchase flow for the exact one-time offer described by offer.
Return
a human-readable result string; "Billing flow started" on success.
Since
4.4.0
Parameters
the launching activity; must not be finishing.
an offer obtained from getOneTimeOffers.