Browse Source

[fix] get settings attr (#2162)

version-14
Saurabh 8 years ago
committed by Rushabh Mehta
parent
commit
93d3bf8fc3
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      frappe/integrations/doctype/razorpay_settings/razorpay_settings.py

+ 6
- 0
frappe/integrations/doctype/razorpay_settings/razorpay_settings.py View File

@@ -168,6 +168,12 @@ class RazorpaySettings(IntegrationService):
"redirect_to": redirect_url, "redirect_to": redirect_url,
"status": status "status": status
} }
def get_settings(self):
return frappe._dict({
"api_key": self.api_key,
"api_secret": self.get_password(fieldname="api_secret", raise_exception=False)
})


def capture_payment(is_sandbox=False, sanbox_response=None): def capture_payment(is_sandbox=False, sanbox_response=None):
""" """


Loading…
Cancel
Save