java.lang.Object | ||
↳ | com.google.android.gms.common.api.GoogleApi<com.google.android.gms.wallet.Wallet.WalletOptions> | |
↳ | com.google.android.gms.wallet.PaymentsClient |
Client for interacting with the Payments APIs. See GoogleApi
for details about how the
connection between your app and Google Play services is managed.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determines if the user can make payments using the Payments API.
| |||||||||||
Requests
PaymentData , which contains the necessary information to complete a payment. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Determines if the user can make payments using the Payments API. We recommend to call this method before showing an option to pay using the Payments APIs.
IsReadyToPayRequest
.
Note that the requirements mentioned above are non-exhaustive and may change over time.
Parameters | |
---|---|
request |
IsReadyToPayRequest : An instance of IsReadyToPayRequest used to specify additional filtering
criteria.
|
Returns | |
---|---|
Task<Boolean> |
Requests PaymentData
, which contains the necessary information to complete a payment.
Note that this generally will require UI to be shown to the users so they can select payment method to be used.
This API conforms to the protocol defined by AutoResolveHelper
, so instead of
handling the returned exceptions yourself when UI needs to be shown (i.e. ResolvableApiException
), you should use the AutoResolveHelper
to pipe the results back to onActivityResult(int, int, android.content.Intent)
. This frees your code from having to handle receiving the result
differently depending on UI being shown or not.
Parameters | |
---|---|
request |
PaymentDataRequest : An instance of PaymentDataRequest used to specify additional settings.
|
Returns | |
---|---|
Task<PaymentData> |