From dd32c3c453b9f10035465fc0f895781de694527d Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 22 Jun 2018 10:46:45 -0400 Subject: [PATCH] For become member form have to setup $_REQUEST array for billing data. Need the billing data set for Authorize.net --- index.php | 6 +++--- models/front/billing/becomeMember.php | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 1910f6f..df12693 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Billing * Plugin URI: http://www.gaslightmedia.com/ * Description: This is glmAssociate Billing Module - * Version: 1.0.3 + * Version: 1.0.4 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersBillingAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.0.3 + * @version 1.0.4 */ /* @@ -37,7 +37,7 @@ * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.3'); +define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.4'); define('GLM_MEMBERS_BILLING_PLUGIN_DB_VERSION', '0.0.25'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/models/front/billing/becomeMember.php b/models/front/billing/becomeMember.php index 2ff1ac8..45eae39 100644 --- a/models/front/billing/becomeMember.php +++ b/models/front/billing/becomeMember.php @@ -469,6 +469,15 @@ class GlmMembersFront_billing_becomeMember // extends GlmDataBilling $payment_option = filter_var( $_REQUEST['payment_option'], FILTER_SANITIZE_STRING ); switch ( $payment_option ) { case 'pay_by_credit_card': + // Setup $_REQUEST ARRAY for billing + $_REQUEST['billing_fname'] = $member_fname; + $_REQUEST['billing_lname'] = $member_lname; + $_REQUEST['billing_addr1'] = $billing_addr1; + $_REQUEST['billing_city'] = $billing_city; + $_REQUEST['billing_state'] = $billing_state; + $_REQUEST['billing_zip'] = $billing_zip; + $_REQUEST['billing_phone'] = $billing_phone; + $_REQUEST['email'] = $memberContactEmail; // Do the Payment Processing. $processErrors = $BillingSupport->processMemberRenewal( $accountID, $invoice_id, $invoice_data['amount'], $invoice_data['employees'] ); if ( $processErrors ) { -- 2.17.1