Browse Source

Merge branch 'develop' into fix-urlencode

pull/2/head
Rushabh Mehta 7 years ago
committed by GitHub
parent
commit
81a664f091
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      payments/templates/pages/razorpay_checkout.py

+ 2
- 1
payments/templates/pages/razorpay_checkout.py View File

@@ -5,6 +5,7 @@ import frappe
from frappe import _
from frappe.utils import flt, cint
import json
from six import string_types

no_cache = 1
no_sitemap = 1
@@ -39,7 +40,7 @@ def get_api_key():
def make_payment(razorpay_payment_id, options, reference_doctype, reference_docname):
data = {}

if isinstance(options, basestring):
if isinstance(options, string_types):
data = json.loads(options)

data.update({


Loading…
Cancel
Save