Interface PlatformPay.Provider

Enclosing class:
PlatformPay

public static interface PlatformPay.Provider
The wallet integration of a port that needs a dependency the port jar cannot carry. The Android build installs the Google Pay provider; apps and tests may install their own.
  • Method Details

    • isReadyToPay

      void isReadyToPay(String googlePayJson, boolean test, SuccessCallback<Boolean> callback)

      Answers whether the user can pay with the wallet.

      Parameters
      • googlePayJson: the Google Pay IsReadyToPayRequest JSON

      • test: true for the wallet's test environment

      • callback: receives the answer

    • requestPayment

      void requestPayment(String googlePayJson, boolean test, SuccessCallback<String> callback)

      Shows the payment sheet.

      Parameters
      • googlePayJson: the Google Pay PaymentDataRequest JSON

      • test: true for the wallet's test environment

      • callback: receives the encoded result, see Result#decode(String)