diff --git a/src/app/accounts/addcredit/addcredit.page.ts b/src/app/accounts/addcredit/addcredit.page.ts index 7d65524..0ec8853 100644 --- a/src/app/accounts/addcredit/addcredit.page.ts +++ b/src/app/accounts/addcredit/addcredit.page.ts @@ -35,9 +35,10 @@ export class AddcreditPage implements OnInit { customerDetails = { name: 'Demo Customer Name', email: 'customer@mail.com', phone_number: '08100000000'} - customizations = {title: 'Customization Title', description: 'Customization Description', logo: 'https://flutterwave.com/images/logo-colored.svg'} + customizations = {title: 'Customization Title', description: 'Customization Description', + logo: 'https://www.wrenchboard.com/assets/ext/images/wrench-icon.png'} - meta = {'counsumer_id': '7898', 'consumer_mac': 'kjs9s8ss7dd'} + meta: {counsumer_id: string, consumer_mac:string}; paymentData : AsyncPaymentOptions = { public_key: this.publicKey, @@ -45,7 +46,7 @@ export class AddcreditPage implements OnInit { amount: 10, currency: 'NGN', payment_options: 'card,ussd', - meta: this.meta, + meta: '', customer: this.customerDetails, customizations: this.customizations, } @@ -135,10 +136,18 @@ export class AddcreditPage implements OnInit { action:11056 */ payViaPromise() { + + this.customerDetails = { name: this.sessionDataProviderService.firstname+''+this.sessionDataProviderService.firstname, + email: this.sessionDataProviderService.email, phone_number: '08100000000'}; + this.meta = { counsumer_id: this.sessionDataProviderService.member_id.toString(), + consumer_mac: this.sessionDataProviderService.member_uid,}; + + this.isProcessDisabled = true; this.paymentData.public_key = this.flutterwave_key; this.paymentData.tx_ref = this.startCreditResult.credit_reference; this.paymentData.amount = this.startCreditResult.amount*0.1; // no kobo - + this.paymentData.meta = this.meta; + this.paymentData.customer = this.customerDetails; this.flutterwave.asyncInlinePay(this.paymentData).then( (response) =>{ diff --git a/src/app/pages/familysettings/familysettings.page.html b/src/app/pages/familysettings/familysettings.page.html index ea16755..9b07567 100644 --- a/src/app/pages/familysettings/familysettings.page.html +++ b/src/app/pages/familysettings/familysettings.page.html @@ -20,24 +20,24 @@