diff --git a/src/app/accounts/addcredit/addcredit.page.html b/src/app/accounts/addcredit/addcredit.page.html index ab99385..3019d8b 100644 --- a/src/app/accounts/addcredit/addcredit.page.html +++ b/src/app/accounts/addcredit/addcredit.page.html @@ -6,66 +6,77 @@ - - - Add Credit - - - - - - - - - - -
- Current Balance: {{curr_balance| number : '1.2-2'}} {{currency_description}} -
-
+ Current Balance: {{curr_balance| number : '1.2-2'}} + {{currency_description}} +
-
+
- Credit {{currency_code}} Wallet + Credit {{currency_code}} Wallet -
Amount({{currency_code}}) : - + Fee : - + Total : - + - Continue + Continue -
@@ -74,158 +85,153 @@ Amount({{currency_code}}) : - + Fee : - + Total : - + - - - - - - - - Payment + + Payment - - - - Cards + + + + Cards - - + + New Card - - - - - - - - - - - - - - - - - {{item.description}} **** **** **** {{item.digits}} + + {{item.description}} **** **** **** + {{item.digits}} - - + - + - + - - Continue + Continue -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +
- - -
-
- - Confirm Payment @@ -235,7 +241,6 @@ - Credit {{currency_code}} Wallet @@ -254,26 +259,30 @@ Payment: -
{{selPaymentCard.description}} **** **** {{selPaymentCard.digits}}
+
+ {{selPaymentCard.description}} **** **** {{selPaymentCard.digits}} +
-
- + Ref Number:
{{startCreditResult.credit_reference}}
- - - - + + + +
-
+
Credit is Successful
@@ -285,13 +294,14 @@
- - - - Complete + Complete diff --git a/src/app/accounts/addcredit/addcredit.page.scss b/src/app/accounts/addcredit/addcredit.page.scss index 6437622..5e76bc2 100644 --- a/src/app/accounts/addcredit/addcredit.page.scss +++ b/src/app/accounts/addcredit/addcredit.page.scss @@ -10,6 +10,10 @@ ion-content { ion-card-title{ font-size: 18px; } + .top-text{ + font-weight: bolder; + color: #8b198e; + } .back_image { width: 100%; height: 80px; diff --git a/src/app/accounts/addcredit/addcredit.page.ts b/src/app/accounts/addcredit/addcredit.page.ts index 0d93678..8e304f7 100644 --- a/src/app/accounts/addcredit/addcredit.page.ts +++ b/src/app/accounts/addcredit/addcredit.page.ts @@ -29,7 +29,7 @@ export class AddcreditPage implements OnInit { card_level:number=200; flutterwave_key:string=''; - + card_count:number = 0; publicKey = "FLWPUBK_TEST-XXXXXXXXX"; @@ -110,6 +110,10 @@ export class AddcreditPage implements OnInit { this.usersCardsData = this.usersCardsTotalData.result_list; // debugger; console.log("usersCardsData RETURN DATA->", this.usersCardsData); + this.card_count = this.usersCardsData.length; + if (this.card_count == 0 ){ + this.setCcType(400); + } //this.total_family = this.familyData.length; } );