From 4455c7f17d6992ba6b3bfce6b44be3b916e853a1 Mon Sep 17 00:00:00 2001 From: Mayank Singhal Date: Sun, 6 Jun 2021 14:52:06 +0530 Subject: [PATCH 1/6] replacing auto checkout with manual --- templates/app.html | 75 +++++++++++++++++++++++++++++++--------------- 1 file changed, 51 insertions(+), 24 deletions(-) diff --git a/templates/app.html b/templates/app.html index 1ebe927..cedfb48 100644 --- a/templates/app.html +++ b/templates/app.html @@ -1,24 +1,51 @@ - - - - - -
- - -
- - + + + \ No newline at end of file From 1eaa7ebea779d9e828b07c950d98601d89f12f59 Mon Sep 17 00:00:00 2001 From: mayanksinghal30 Date: Mon, 7 Jun 2021 18:30:11 +0530 Subject: [PATCH 2/6] updating the code --- templates/app.html | 105 ++++++++++++++++++++++++--------------------- 1 file changed, 55 insertions(+), 50 deletions(-) diff --git a/templates/app.html b/templates/app.html index cedfb48..cff2cb6 100644 --- a/templates/app.html +++ b/templates/app.html @@ -1,51 +1,56 @@ - - - + \ No newline at end of file + // Boolean whether to show image inside a white frame. (default: true) + options.theme.image_padding = false; + options.modal = { + ondismiss: function () { + console.log("This code runs when the popup is closed"); + }, + // Boolean indicating whether pressing escape key + // should close the checkout form. (default: true) + escape: true, + // Boolean indicating whether clicking translucent blank + // space outside checkout form should close the form. (default: false) + backdropclose: false + }; + var rzp = new Razorpay(options); + document.getElementById('rzp-button1').onclick = function (e) { + rzp.open(); + e.preventDefault(); + } + + + From e5d6cec63c9c4c90468d2acc677abf59a7f25d2d Mon Sep 17 00:00:00 2001 From: mayanksinghal30 Date: Thu, 10 Jun 2021 12:20:11 +0530 Subject: [PATCH 3/6] update --- templates/app.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/templates/app.html b/templates/app.html index cff2cb6..8d1747d 100644 --- a/templates/app.html +++ b/templates/app.html @@ -4,13 +4,9 @@ - Razorpay .Net Sample App + Razorpay Python Sample App -
- - -
+
+ + +
-
+
@@ -42,7 +42,7 @@ options.handler = function (response) { document.getElementById('payment_id').value = response.razorpay_payment_id; document.getElementById('amount').value = amount; - document.razorpayform.submit(); + document.razorpayForm.submit(); }; // Boolean whether to show image inside a white frame. (default: true) options.theme.image_padding = false; @@ -65,4 +65,4 @@ - \ No newline at end of file + From 57794e95144e9f7fb90a607e4648c2af9d16670e Mon Sep 17 00:00:00 2001 From: mayanksinghal30 Date: Fri, 18 Jun 2021 12:20:33 +0530 Subject: [PATCH 6/6] Update app.html --- templates/app.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/app.html b/templates/app.html index af7745e..07ee00c 100644 --- a/templates/app.html +++ b/templates/app.html @@ -25,7 +25,7 @@ "prefill": { "name": "Daft Punk", "email": "customer@merchant.com", - "contact": "9999999999", + "contact": "+919999999999", }, "notes": { "address": "Hello World",