Browse Source

Add RuPay to list of card brands (#785)

Co-authored-by: Hinton <hinton@users.noreply.github.com>
PS-589-2fa-device-verification-settings
Sargun Vohra 4 years ago committed by GitHub
parent
commit
28d15bfe2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      angular/src/components/add-edit.component.ts
  2. 1
      angular/src/components/icon.component.ts
  3. BIN
      angular/src/images/cards/ru_pay-dark.png
  4. BIN
      angular/src/images/cards/ru_pay-light.png
  5. 2
      angular/src/scss/icons.scss

1
angular/src/components/add-edit.component.ts

@ -108,6 +108,7 @@ export class AddEditComponent implements OnInit { @@ -108,6 +108,7 @@ export class AddEditComponent implements OnInit {
{ name: "JCB", value: "JCB" },
{ name: "Maestro", value: "Maestro" },
{ name: "UnionPay", value: "UnionPay" },
{ name: "RuPay", value: "RuPay" },
{ name: i18nService.t("other"), value: "Other" },
];
this.cardExpMonthOptions = [

1
angular/src/components/icon.component.ts

@ -19,6 +19,7 @@ const cardIcons: Record<string, string> = { @@ -19,6 +19,7 @@ const cardIcons: Record<string, string> = {
JCB: "card-jcb",
Maestro: "card-maestro",
UnionPay: "card-union-pay",
RuPay: "card-ru-pay",
};
@Component({

BIN
angular/src/images/cards/ru_pay-dark.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 797 B

BIN
angular/src/images/cards/ru_pay-light.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 874 B

2
angular/src/scss/icons.scss

@ -8,6 +8,7 @@ $card-icons: ( @@ -8,6 +8,7 @@ $card-icons: (
"maestro": $card-icons-base + "maestro-light.png",
"mastercard": $card-icons-base + "mastercard-light.png",
"union-pay": $card-icons-base + "union_pay-light.png",
"ru-pay": $card-icons-base + "ru_pay-light.png",
);
$card-icons-dark: (
@ -19,6 +20,7 @@ $card-icons-dark: ( @@ -19,6 +20,7 @@ $card-icons-dark: (
"maestro": $card-icons-base + "maestro-dark.png",
"mastercard": $card-icons-base + "mastercard-dark.png",
"union-pay": $card-icons-base + "union_pay-dark.png",
"ru-pay": $card-icons-base + "ru_pay-dark.png",
);
.credit-card-icon {

Loading…
Cancel
Save