confirmation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user