From df30f47f4e922b7fe582df70faa7248e506eeddb Mon Sep 17 00:00:00 2001 From: phot0n Date: Wed, 9 Mar 2022 12:23:34 +0530 Subject: [PATCH] chore: remove razorpay.js --- frappe/public/js/integrations/razorpay.js | 148 ---------------------- 1 file changed, 148 deletions(-) delete mode 100644 frappe/public/js/integrations/razorpay.js diff --git a/frappe/public/js/integrations/razorpay.js b/frappe/public/js/integrations/razorpay.js deleted file mode 100644 index eda4ac1894..0000000000 --- a/frappe/public/js/integrations/razorpay.js +++ /dev/null @@ -1,148 +0,0 @@ -/* HOW-TO - -Razorpay Payment - -1. Include checkout script in your code - {{ include_script('checkout.bundle.js) }} - -2. Create the Order controller in your backend - def get_razorpay_order(self): - controller = get_payment_gateway_controller("Razorpay") - - payment_details = { - "amount": 300, - ... - "reference_doctype": "Conference Participant", - "reference_docname": self.name, - ... - "receipt": self.name - } - - return controller.create_order(**payment_details) - -3. Inititate the payment in client using checkout API - function make_payment(ticket) { - var options = { - "name": "", - "description": "", - "image": "", - "prefill": { - "name": "", - "email": "", - "contact": "" - }, - "theme": { - "color": "" - }, - "doctype": "", - "docname": " { -