diff --git a/src/app/accounts/addcredit/addcredit.page.html b/src/app/accounts/addcredit/addcredit.page.html index 969fe02..c8eb201 100644 --- a/src/app/accounts/addcredit/addcredit.page.html +++ b/src/app/accounts/addcredit/addcredit.page.html @@ -212,6 +212,11 @@
{{startCreditResult.credit_reference}}
+ + + Confirmation: +
{{credit_confirmation}}
+
diff --git a/src/app/accounts/addcredit/addcredit.page.ts b/src/app/accounts/addcredit/addcredit.page.ts index 0d133da..7088b7a 100644 --- a/src/app/accounts/addcredit/addcredit.page.ts +++ b/src/app/accounts/addcredit/addcredit.page.ts @@ -180,8 +180,11 @@ export class AddcreditPage implements OnInit { // this.total = this.fee + this.amount; } + credit_confirmation :string=''; + creditResult:any; async processPayment(processor){ + this.credit_confirmation=''; const loading = await this.loadingCtrl.create({ message: 'Processing...', duration: 3500, @@ -207,6 +210,8 @@ export class AddcreditPage implements OnInit { loading.dismiss(); console.log("creditResult TOTAL RETURN->", this.creditResult); if ( creditResult!=undefined && creditResult.internal_return > 0 && creditResult.confirmation !=''){ + this.userWalletService.getWalletData(); // refresh the wallet + this.credit_confirmation = creditResult.confirmation; alert("Completed"); // this.startCreditResult = startCreditResult;