Exemple #1
0
        private static string GeneratePartialCaptureDataString(YShopPayment payment, decimal?captureSumValue)
        {
            var result = new ShopPayment
            {
                amount = new Amount
                {
                    value = decimal.Round(captureSumValue ?? payment.YAmount.Value, 2)
                            .ToString(CultureInfo.InvariantCulture),
                    currency = payment.YAmount.Currency
                }
            };

            return(result.ToString());
        }
Exemple #2
0
        private static string GenerateRefundDataString(YShopPayment payment, decimal?refundSum)
        {
            var result = new ShopPayment
            {
                amount = new Amount
                {
                    value = decimal.Round(refundSum ?? payment.YAmount.Value, 2)
                            .ToString(CultureInfo.InvariantCulture),
                    currency = payment.YAmount.Currency
                },
                payment_id = payment.Id.ToString()
            };

            return(result.ToString());
        }
 public string ToString(bool isFormatting)
 {
     return(ShopPayment.ToString(isFormatting));
 }
 public override string ToString()
 {
     return(ShopPayment.ToString());
 }
 public string Build()
 {
     return(_payObject.ToString());
 }