Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Add translation for Credit Card payment type #89

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ en:
token: Token
payment_type:
apple_pay_card: Apple Pay
credit_card: Credit Card
pay_pal_account: PayPal
configurations:
title: Braintree Configurations
Expand Down
8 changes: 8 additions & 0 deletions spec/models/solidus_paypal_braintree/source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@
expect(subject).to eq "Apple Pay"
end
end

context "when the payment type is Credit Card" do
let(:type) { "CreditCard" }

it "returns the translated payment type" do
expect(subject).to eq "Credit Card"
end
end
end

describe "#apple_pay?" do
Expand Down