Interface PaywallListener


public interface PaywallListener
Receives what happens on a paywall. Every method is called on the EDT.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The paywall was closed: by the customer, or by itself after a completed purchase or restore when Paywall.show(Offering, PaywallListener) showed it.
    void
    The paywall was closed after a purchase was started and before the cloud confirmed it.
    void
    The cloud confirmed the purchase: the customer now owns the product of the package.
    void
    The customer pressed the purchase button and the store was asked to sell the package.
    void
    The customer information changed after the customer asked to restore purchases.
  • Method Details

    • purchaseStarted

      void purchaseStarted(CommercePackage pkg)

      The customer pressed the purchase button and the store was asked to sell the package.

      Parameters
      • pkg: the package being bought
    • purchaseCompleted

      void purchaseCompleted(CustomerInfo info)

      The cloud confirmed the purchase: the customer now owns the product of the package. A paywall shown by Paywall.show(Offering, PaywallListener) has already returned to the form it was shown over; a PaywallView in a form of the application is still showing.

      Parameters
      • info: the customer information that includes the purchase
    • purchaseCancelled

      void purchaseCancelled()
      The paywall was closed after a purchase was started and before the cloud confirmed it.
    • restoreCompleted

      void restoreCompleted(CustomerInfo info)

      The customer information changed after the customer asked to restore purchases. A paywall shown by Paywall.show(Offering, PaywallListener) has already returned to the form it was shown over.

      Parameters
      • info: the customer information after the restore
    • closed

      void closed()
      The paywall was closed: by the customer, or by itself after a completed purchase or restore when Paywall.show(Offering, PaywallListener) showed it.