You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var order =JSON.parse(document.getElementById("order-data").textContent)
57
+
var ord =JSON.parse(document.getElementById("ord-data").textContent)
58
+
var key =JSON.parse(document.getElementById("key-data").textContent)
59
+
console.log(order)
60
+
61
+
var options = {
62
+
key: key,
63
+
amount:order.Total,
64
+
currency:"INR",
65
+
name:"Stitch",
66
+
description:"Cloth Shop",
67
+
"order_id":ord.id,
68
+
handler:asyncfunction (response) {
69
+
var url ="/payment-verification/"+order.id
70
+
var body =JSON.stringify({"orderId":response.razorpay_order_id, "paymentId":response.razorpay_payment_id, "razorpaySignature":response.razorpay_signature})
71
+
console.log(body)
72
+
var res =awaitfetch(url,{method:"POST", headers: {"Content-Type":"application/json"}, body:body})
0 commit comments