// Add the discount code to the checkout and update the order summary when the request completes. private async Task SetDiscountCodeAsync(string discountCode) { ShowLoadingDialog(Resource.String.syncing_data); try { await SampleApplication.SetDiscountCodeAsync(discountCode); UpdateOrderSummary(); } catch (ShopifyException ex) { Toast.MakeText(this, GetString(Resource.String.discount_error, discountCode), ToastLength.Long).Show(); } DismissLoadingDialog(); }