private void IsReadyToPay()
        {
            try
            {
                IsReadyToPayRequest request = IsReadyToPayRequest.NewBuilder()
                                              .AddAllowedPaymentMethod(WalletConstants.PaymentMethodCard)
                                              .AddAllowedPaymentMethod(WalletConstants.PaymentMethodTokenizedCard)
                                              .Build();
                Task task = MPaymentsClient.IsReadyToPay(request);

                task.AddOnCompleteListener(this, this);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
 public static async Task <BooleanResult> IsReadyToPayAsync(this IPayments api, GoogleApiClient googleApiClient, IsReadyToPayRequest request)
 {
     return((await api.IsReadyToPay(googleApiClient, request)).JavaCast <BooleanResult> ());
 }
예제 #3
0
 public Task <Java.Lang.Boolean> IsReadyToPayAsync(IsReadyToPayRequest isReadyToPayRequest)
 {
     return(IsReadyToPay(isReadyToPayRequest).AsAsync <Java.Lang.Boolean>());
 }