add credir

This commit is contained in:
CHIEFSOFT\ameye
2023-11-28 22:19:38 -05:00
parent 9af9231c51
commit 014c441ee2
+7 -2
View File
@@ -27,6 +27,7 @@ export class AddcreditPage implements OnInit {
isModalOpen:boolean = false;
isModalOpenBackdrop:boolean = false;
card_level:number=200;
flutterwave_key:string='';
@@ -115,6 +116,8 @@ export class AddcreditPage implements OnInit {
}
payViaPromise() {
this.paymentData.public_key = this.flutterwave_key;
this.flutterwave.asyncInlinePay(this.paymentData).then(
(response) =>{
console.log("Promise Res" , response)
@@ -162,7 +165,7 @@ export class AddcreditPage implements OnInit {
console.log("startCreditResult TOTAL RETURN->", this.startCreditResult);
if ( startCreditResult!=undefined && startCreditResult.credit_reference!='' ){
this.startCreditResult = startCreditResult;
this.flutterwave_key = this.startCreditResult.flutterwave_key;
this.isModalOpen = true;
this.isModalOpenBackdrop= true;
@@ -238,8 +241,10 @@ export class AddcreditPage implements OnInit {
});
if(this.processor == 3030){
debugger;
// debugger;
loading.present();
this.payViaPromise();
return 0;
}
if (this.processor == 5000){
this.isProcessDisabled = true;