[minor]
This commit is contained in:
parent
6e9fb3b04c
commit
b8b2811aa6
2 changed files with 6 additions and 1 deletions
|
|
@ -200,6 +200,7 @@ def capture_payment(is_sandbox=False, sanbox_response=None):
|
|||
doc = frappe.get_doc("Integration Request", doc.name)
|
||||
doc.status = "Failed"
|
||||
doc.error = frappe.get_traceback()
|
||||
frappe.log_error(doc.error, '{0} Failed'.format(doc.name))
|
||||
|
||||
@frappe.whitelist(allow_guest=True, xss_safe=True)
|
||||
def get_checkout_url(**kwargs):
|
||||
|
|
|
|||
|
|
@ -417,6 +417,10 @@ frappe.ready(function() {
|
|||
frappe.form_dirty = true;
|
||||
});
|
||||
|
||||
$form.on('submit', function() {
|
||||
return false;
|
||||
});
|
||||
|
||||
// allow payment only if
|
||||
$('.btn-payment').on('click', function() {
|
||||
save(true);
|
||||
|
|
@ -593,7 +597,7 @@ frappe.ready(function() {
|
|||
|
||||
function save(for_payment) {
|
||||
if(window.saving)
|
||||
return;
|
||||
return false;
|
||||
window.saving = true;
|
||||
frappe.form_dirty = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue