From 5d3be2c77d7e3880bfce5b1643fa046a0cbdaa65 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 10 Jan 2017 14:44:42 +0530 Subject: [PATCH] [design] Redesign, cleanup Login, Message pages (#2564) * [cleanup] login, message pages * [style] cleanups * [cleanup] * [cleanup] update password * [fix] name for web form (fixes edit-profile) --- .../doctype/paypal_settings/paypal_settings.py | 4 ++-- .../doctype/razorpay_settings/razorpay_settings.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/payments/payment_gateways/doctype/paypal_settings/paypal_settings.py b/payments/payment_gateways/doctype/paypal_settings/paypal_settings.py index 33f1484..456e775 100644 --- a/payments/payment_gateways/doctype/paypal_settings/paypal_settings.py +++ b/payments/payment_gateways/doctype/paypal_settings/paypal_settings.py @@ -217,7 +217,7 @@ def get_express_checkout_details(token): if response.get("ACK")[0] != "Success": frappe.respond_as_web_page(_("Something went wrong"), _("Looks like something went wrong during the transaction. Since we haven't confirmed the payment, Paypal will automatically refund you this amount. If it doesn't, please send us an email and mention the Correlation ID: {0}.").format(response.get("CORRELATIONID", [None])[0]), - success=False, + indicator_color='red', http_status_code=frappe.ValidationError.http_status_code) return @@ -300,5 +300,5 @@ def get_checkout_url(**kwargs): except Exception: frappe.respond_as_web_page(_("Something went wrong"), _("Looks like something is wrong with this site's Paypal configuration. Don't worry! No payment has been made from your Paypal account."), - success=False, + indicator_color='red', http_status_code=frappe.ValidationError.http_status_code) \ No newline at end of file diff --git a/payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py b/payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py index e987763..04e5be8 100644 --- a/payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py +++ b/payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py @@ -219,8 +219,8 @@ def get_checkout_url(**kwargs): return frappe.get_doc("Razorpay Settings").get_payment_url(**kwargs) except Exception: frappe.respond_as_web_page(_("Something went wrong"), - _("Looks like something is wrong with this site's Razorpay configuration. Don't worry! No payment has been made."), - success=False, + _("Looks like something is wrong with this site's Razorpay configuration. No payment has been made."), + indicator_color='red', http_status_code=frappe.ValidationError.http_status_code) @frappe.whitelist()