Explorar el Código

[fix] get settings attr (#2162)

pull/2/head
Saurabh hace 8 años
committed by Rushabh Mehta
padre
commit
62e8428534
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. +6
    -0
      payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py

+ 6
- 0
payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py Ver fichero

@@ -168,6 +168,12 @@ class RazorpaySettings(IntegrationService):
"redirect_to": redirect_url,
"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):
"""


Cargando…
Cancelar
Guardar