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 Summary
Modifier and TypeMethodDescriptionvoidisReadyToPay(String googlePayJson, boolean test, SuccessCallback<Boolean> callback) Answers whether the user can pay with the wallet.voidrequestPayment(String googlePayJson, boolean test, SuccessCallback<String> callback) Shows the payment sheet.
-
Method Details
-
isReadyToPay
Answers whether the user can pay with the wallet.
Parameters
-
googlePayJson: the Google PayIsReadyToPayRequestJSON -
test: true for the wallet's test environment -
callback: receives the answer
-
-
requestPayment
Shows the payment sheet.
Parameters
-
googlePayJson: the Google PayPaymentDataRequestJSON -
test: true for the wallet's test environment -
callback: receives the encoded result, seeResult#decode(String)
-
-