Merge pull request #2072 from saurabh6790/razorpay_payment_page
[minor][fix] razorpay payment
This commit is contained in:
commit
c8ca79bda5
2 changed files with 4 additions and 6 deletions
|
|
@ -115,7 +115,7 @@ class Controller(IntegrationController):
|
|||
if hasattr(self, "parameters"):
|
||||
return frappe._dict(self.parameters)
|
||||
|
||||
custom_settings_json = frappe.db.get_value("Integration Service", "Razorpay", "custom_settings_json", debug=1)
|
||||
custom_settings_json = frappe.db.get_value("Integration Service", "Razorpay", "custom_settings_json")
|
||||
|
||||
if custom_settings_json:
|
||||
return frappe._dict(json.loads(custom_settings_json))
|
||||
|
|
|
|||
|
|
@ -11,9 +11,8 @@ $(document).ready(function(){
|
|||
},
|
||||
"prefill": {
|
||||
"name": "{{ payer_name }}",
|
||||
"email": "saurabh@erpnext.com",
|
||||
"order_id": "{{ order_id }}",
|
||||
"phone": "9773595372"
|
||||
"email": "{{ payer_email }}",
|
||||
"order_id": "{{ order_id }}"
|
||||
},
|
||||
"notes": {
|
||||
"doctype": "{{ doctype }}",
|
||||
|
|
@ -26,7 +25,6 @@ $(document).ready(function(){
|
|||
};
|
||||
|
||||
var rzp = new Razorpay(options);
|
||||
console.log(options)
|
||||
rzp.open();
|
||||
// e.preventDefault();
|
||||
})();
|
||||
|
|
@ -39,7 +37,7 @@ razorpay.make_payment_log = function(response, options, doctype, docname){
|
|||
$('.razorpay-confirming').removeClass('hidden');
|
||||
|
||||
frappe.call({
|
||||
method:"frappe.templates.pages.razorpay_checkout.make_payment",
|
||||
method:"frappe.templates.pages.integrations.razorpay_checkout.make_payment",
|
||||
freeze:true,
|
||||
headers: {"X-Requested-With": "XMLHttpRequest"},
|
||||
args: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue