confirmation

This commit is contained in:
CHIEFSOFT\ameye
2023-11-27 07:39:58 -05:00
parent 5de700fedc
commit f557aae7b6
2 changed files with 10 additions and 0 deletions
@@ -212,6 +212,11 @@
<ion-item>
<div>{{startCreditResult.credit_reference}}</div>
</ion-item>
<ion-item *ngIf="credit_confirmation !='' ">
<ion-label>Confirmation: </ion-label>
<div>{{credit_confirmation}}</div>
</ion-item>
</ion-list>
@@ -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;