diff --git a/app/models/solidus_paypal_braintree/gateway.rb b/app/models/solidus_paypal_braintree/gateway.rb index 5160433e..ec49ce4f 100644 --- a/app/models/solidus_paypal_braintree/gateway.rb +++ b/app/models/solidus_paypal_braintree/gateway.rb @@ -39,6 +39,10 @@ class Gateway < ::Spree::PaymentMethod preference(:public_key, :string, default: nil) preference(:private_key, :string, default: nil) + def method_type + "paypal_braintree" + end + def payment_source_class Source end diff --git a/app/views/spree/admin/payments/source_views/_paypal_braintree.html.erb b/app/views/spree/admin/payments/source_views/_paypal_braintree.html.erb new file mode 100644 index 00000000..48f69106 --- /dev/null +++ b/app/views/spree/admin/payments/source_views/_paypal_braintree.html.erb @@ -0,0 +1,16 @@ +
+
+
+
+
<%= Spree.t(:identifier) %>:
+
<%= payment.number %>
+ +
<%= t('solidus_paypal_braintree.nonce') %>:
+
<%= payment.source.nonce %>
+ +
<%= Spree.t(:response_code) %>:
+
<%= payment.response_code %>
+
+
+
+
diff --git a/config/locales/en.yml b/config/locales/en.yml index f341cf45..05efc81c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,5 +1,3 @@ -# Sample localization file for English. Add more files in this directory for other locales. -# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. - en: - hello: Hello world + solidus_paypal_braintree: + nonce: Nonce