From f557aae7b640d7ad063337df3a3777a04d879f74 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Mon, 27 Nov 2023 07:39:58 -0500 Subject: [PATCH] confirmation --- src/app/accounts/addcredit/addcredit.page.html | 5 +++++ src/app/accounts/addcredit/addcredit.page.ts | 5 +++++ 2 files changed, 10 insertions(+) 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;