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) =>{