示例#1
0
        protected virtual async Task Purchase()
        {
            var oid = await VmService.RegisterOrder(PaymentInfo.Amount, PaymentInfo.Currency == "RUB"? 643 : 0, PaymentInfo.CustomerEmail, PaymentInfo.CustomerPhone, OrderId);

            if (oid != 0)
            {
                PaymentUrl = VmService.GetPurchaseUrl(oid, PaymentInfo.CustomerEmail);
            }
            else
            {
                await UserDialogs.Error("Не удалось произвести оплату");
            }
        }