fix: get data from request directly (#21954)

This commit is contained in:
Shivam Mishra 2020-05-27 06:17:26 +00:00 committed by GitHub
parent 07b56610dd
commit e4bbdbbfe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,9 @@ def get_member_based_on_subscription(subscription_id, email):
return frappe.get_doc("Member", members[0]['name'])
@frappe.whitelist(allow_guest=True)
def trigger_razorpay_subscription(data):
def trigger_razorpay_subscription(*args, **kwargs):
data = frappe.request.get_data()
if isinstance(data, six.string_types):
data = json.loads(data)
data = frappe._dict(data)