Skip to content

Commit

Permalink
added, first,last name, phone to the data
Browse files Browse the repository at this point in the history
  • Loading branch information
Preciousomonze committed Jul 5, 2018
1 parent d7393b1 commit 2944edc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions assets/js/flw.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ var buildConfigObj = function( form ) {
var email = formData.email || jQuery(form).find('#flw-customer-email').val();
var formCurrency = formData.currency || jQuery(form).find('#flw-currency').val();
var txref = 'WP_' + form.id.toUpperCase() + '_' + new Date().valueOf();
//WHERE was added
var phonenumber = formData.phone || jQuery(form).find('#flw-customer-phone').val();
var firstname = formData.firstname || jQuery(form).find('#flw-customer-firstname').val();
var lastname = formData.lastname || jQuery(form).find('#flw-customer-lastname').val();

if (formCurrency == '') {
formCurrency = flw_rave_options.currency;
Expand All @@ -38,6 +42,9 @@ var buildConfigObj = function( form ) {
custom_logo: flw_rave_options.logo,
custom_title: flw_rave_options.title,
customer_email: email,
customer_phone: phonenumber,
customer_firstname: firstname,
customer_lastname: lastname,
payment_method: flw_rave_options.method,
PBFPubKey: flw_rave_options.pbkey,
txref: txref,
Expand Down

0 comments on commit 2944edc

Please sign in to comment.