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

Manage cards link on checkout page #197

Merged
merged 4 commits into from
May 22, 2019
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 i18n/th_TH.csv
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
"Print", "พิมพ์"
"Choose your installment terms","เลือกระยะเวลาการผ่อนชำระ"
"Miminum order value is 3000 THB", "ยอดสั่งซื้อขั้นต่ำ 3000 บาท"
"Manage your cards", "จัดการบัตร"
5 changes: 4 additions & 1 deletion view/frontend/web/template/payment/omise-cc-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
value: omiseCardToken"/>

<!-- ko if: isCustomerHasCard() -->
<h4><!-- ko i18n: 'Select a card you want to proceed' --><!-- /ko --></h4>
<h4><!-- ko i18n: 'Select a card to proceed' --><!-- /ko --></h4>
<ul style="padding-left: 1.3em; margin-bottom: 2em;">
<!-- ko foreach: getCustomerCards() -->
<li style="list-style: none; margin-bottom: 2rem;">
Expand All @@ -51,6 +51,9 @@ <h4><!-- ko i18n: 'Select a card you want to proceed' --><!-- /ko --></h4>
<input id="chargeWithNewCard" name="payment[omise_card]" type="radio" data-bind="click: chargeWithNewCard.bind($data, $element), checked: omiseCard, value: ''" /> <label for="chargeWithNewCard"><!-- ko i18n: 'Use a new card'--><!-- /ko --></label>
</li>
</ul>
<a data-bind = "attr: { href: checkout.baseUrl + 'omise/cards/listaction' }" target="_blank">
<span data-bind="i18n: 'Manage your cards'"></span>
</a>
<!-- /ko -->

<fieldset data-bind="attr: {class: 'fieldset payment items ccard ' + getCode(), id: 'payment_form_' + getCode()}, visible: !isCustomerHasCard()">
Expand Down