Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(payments): INT-5290 Fix Payment Methods to show stored Bank Accounts #2225

Merged
merged 1 commit into from
Jun 21, 2022
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 CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add pickups to storefront invoice [#2216](https://github.com/bigcommerce/cornerstone/pull/2216)

## Unreleased (unreleased)
- Fixed The stored bank account was not displayed in the "payment methods" section [#2225](https://github.com/bigcommerce/cornerstone/pull/2225)
- Fixed "None" not being selected by default on unrequired Pick Lists without images [#2215](https://github.com/bigcommerce/cornerstone/pull/2215)

## 6.4.1 (05-16-2022)
Expand Down
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@
],
"supported_payment_methods": [
"card",
"paypal"
"paypal",
"bank"
],
"lazyload_mode": "lazyload+lqip",
"checkout-paymentbuttons-paypal-color": "black",
Expand Down
10 changes: 10 additions & 0 deletions templates/components/account/payment-methods-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ <h4 class="paymentMethodsTitle">
{{/if}}
{{!-- If credit card ENDS --}}
{{/if}}

{{#if type '===' 'stored_bank_account'}}
{{!-- If bank_account STARTS --}}
<img class="methodHeader-icon" src="{{cdn 'img/payment-methods/card.svg'}}"
alt="{{lang 'account.payment_methods.card_types.credit_card'}}"
title="{{lang 'account.payment_methods.card_types.credit_card'}}">
<span class="methodHeader-brand">{{ lang 'account.payment_methods.payment_method'}}</span>
{{!-- If bank_account ENDS --}}
{{/if}}

{{#if type '===' 'stored_paypal_account'}}
{{!-- If paypal STARTS --}}
<img class="methodHeader-icon" src="{{cdn 'img/payment-methods/paypal.svg'}}" alt="{{lang 'account.payment_methods.paypal'}}" title="{{lang 'account.payment_methods.paypal'}}">
Expand Down