AndroidPayQuickstart.FullWalletConfirmationButtonFragment.fetchTransactionStatus C# (CSharp) Method

fetchTransactionStatus() private method

private fetchTransactionStatus ( FullWallet fullWallet ) : void
fullWallet FullWallet
return void
        void fetchTransactionStatus (FullWallet fullWallet) 
        {
            if (mProgressDialog.IsShowing)
                mProgressDialog.Dismiss();

            // Log Stripe payment method token, if it exists
            PaymentMethodToken token = fullWallet.PaymentMethodToken;
            if (token != null) {
                // getToken returns a JSON object as a String.  Replace newlines to make LogCat output
                // nicer.  The 'id' field of the object contains the Stripe token we are interested in.
                Android.Util.Log.Debug (TAG, "PaymentMethodToken:" + token.Token.Replace ('\n', ' '));
            }

            // NOTE: Send details such as fullWallet.getProxyCard() or fullWallet.getBillingAddress()
            // to your server and get back success or failure. If you used Stripe for processing,
            // you can get the token from fullWallet.getPaymentMethodToken()
            // The following code assumes a successful response and calls notifyTransactionStatus
            WalletClass.Payments.NotifyTransactionStatus (mGoogleApiClient,
                WalletUtil.CreateNotifyTransactionStatusRequest (fullWallet.GoogleTransactionId,
                    NotifyTransactionStatusRequest.Status.Success));

            Intent intent = new Intent(Activity, typeof (OrderCompleteActivity));
            intent.SetFlags (ActivityFlags.ClearTask | ActivityFlags.NewTask);
            intent.PutExtra (Constants.EXTRA_FULL_WALLET, fullWallet);

            StartActivity(intent);
        }