From 11daf89005593bc6ac5226dbabcc4429f9fd9c66 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Wed, 2 Aug 2017 16:56:01 +1000 Subject: [PATCH] Add admin views for Stripe payment methods These views were pretty much just copied from https://github.com/spree/spree_gateway --- app/views/spree/admin/payments/source_forms/_stripe.html.haml | 4 ++++ app/views/spree/admin/payments/source_views/_stripe.html.haml | 1 + config/locales/en.yml | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 app/views/spree/admin/payments/source_forms/_stripe.html.haml create mode 100644 app/views/spree/admin/payments/source_views/_stripe.html.haml diff --git a/app/views/spree/admin/payments/source_forms/_stripe.html.haml b/app/views/spree/admin/payments/source_forms/_stripe.html.haml new file mode 100644 index 0000000000..24bde74a31 --- /dev/null +++ b/app/views/spree/admin/payments/source_forms/_stripe.html.haml @@ -0,0 +1,4 @@ +-# = render "spree/admin/payments/source_forms/gateway", payment_method: payment_method + +%strong + = t('.no_payment_via_admin_backend') diff --git a/app/views/spree/admin/payments/source_views/_stripe.html.haml b/app/views/spree/admin/payments/source_views/_stripe.html.haml new file mode 100644 index 0000000000..64af07bd3b --- /dev/null +++ b/app/views/spree/admin/payments/source_views/_stripe.html.haml @@ -0,0 +1 @@ += render "spree/admin/payments/source_views/gateway", payment: payment diff --git a/config/locales/en.yml b/config/locales/en.yml index 79b375c34e..799e9c402b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2130,6 +2130,10 @@ Please follow the instructions there to make your enterprise visible on the Open account_id: Account ID business_name: Business Name charges_enabled: Charges Enabled + payments: + source_forms: + stripe: + no_payment_via_admin_backend: Creating Stripe-based payments from the admin backend is not possible at this time products: new: title: 'New Product'