private static void TestSimpleCharge(StripePayment payment) { StripeCreditCardInfo cc = GetCC(); StripeCharge charge = payment.Charge(5001, "usd", cc, "Test charge"); Console.WriteLine(charge); string charge_id = charge.Id; StripeCharge charge_info = payment.GetCharge(charge_id); Console.WriteLine(charge_info); StripeCharge refund = payment.Refund(charge_info.Id); Console.WriteLine(refund.Created); }
private static void TestPartialRefund(StripePayment payment) { StripeCreditCardInfo cc = GetCC(); StripeCharge charge = payment.Charge(5001, "usd", cc, "Test partial refund"); Console.WriteLine(charge.Id); StripeCharge refund = payment.Refund(charge.Id, 2499); Console.WriteLine(refund.Amount); }