From a971596e40b25ab4191ad6f5c141a565fdeb12df Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 28 Nov 2023 22:24:05 -0500 Subject: [PATCH] fix params --- src/app/accounts/addcredit/addcredit.page.ts | 26 ++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/app/accounts/addcredit/addcredit.page.ts b/src/app/accounts/addcredit/addcredit.page.ts index 3e63230..89501dc 100644 --- a/src/app/accounts/addcredit/addcredit.page.ts +++ b/src/app/accounts/addcredit/addcredit.page.ts @@ -114,9 +114,31 @@ export class AddcreditPage implements OnInit { ); } - +/* + paymentData : AsyncPaymentOptions = { + public_key: this.publicKey, + tx_ref: this.generateReference(), + amount: 10, + currency: 'NGN', + payment_options: 'card,ussd', + meta: this.meta, + customer: this.customerDetails, + customizations: this.customizations, + } + member_id:this.sessionDataProviderService.member_id, + sessionid:this.sessionDataProviderService.session, + uid:this.sessionDataProviderService.member_uid, + currency: this.currency_code, + amount:this.startCreditResult.amount, + credit_reference:this.startCreditResult.credit_reference, + card_uid: this.startCreditResult.card_uid, + action:11056 + */ payViaPromise() { - this.paymentData.public_key = this.flutterwave_key; + this.paymentData.public_key = this.flutterwave_key; + this.paymentData.tx_ref = this.startCreditResult.credit_reference; + this.paymentData.amount = this.startCreditResult.amount; + this.flutterwave.asyncInlinePay(this.paymentData).then( (response) =>{