Version 2.3.6
This commit is contained in:
1 parent
a3bb603c96
commit
19b38c7c74
764 files changed
+143731
-118164
No files matched your search
@@ -109,6 +109,8 @@ class class_gw_module EXTENDS class_gateway
|
||||
$this->core_add_hidden_field( "product_id" , $items['product_id'] );
|
||||
$this->core_add_hidden_field( "quantity" , 1 );
|
||||
|
||||
$this->core_add_hidden_field( "verification" , md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
|
||||
|
||||
return $this->core_compile_hidden_fields();
|
||||
}
|
||||
|
||||
@@ -188,7 +190,7 @@ class class_gw_module EXTENDS class_gateway
|
||||
// INIT
|
||||
//--------------------------------------
|
||||
|
||||
$referers = array( 'www.2checkout.com', '2checkout.com', $_SERVER['HTTP_HOST'], str_replace( 'www.', '', $_SERVER['HTTP_HOST'] ) );
|
||||
$referers = array( 'www.2checkout.com', '2checkout.com', $this->ipsclass->my_getenv('HTTP_HOST'), str_replace( 'www.', '', $this->ipsclass->my_getenv('HTTP_HOST') ) );
|
||||
$got_match = 0;
|
||||
|
||||
//--------------------------------------
|
||||
@@ -228,16 +230,17 @@ class class_gw_module EXTENDS class_gateway
|
||||
// Populate return array
|
||||
//--------------------------------------
|
||||
|
||||
list( $purchase_package_id, $member_id, $cur_sub_id, ) = explode( 'x', trim($_REQUEST['merchant_order_id']) );
|
||||
list( $purchase_package_id, $member_id, $cur_sub_id, ) = explode( 'x', trim($this->ipsclass->input['merchant_order_id']) );
|
||||
|
||||
$return = array( 'currency_code' => 'USD',
|
||||
'payment_amount' => $_REQUEST['total'],
|
||||
'payment_amount' => $this->ipsclass->input['total'],
|
||||
'member_unique_id' => intval($member_id),
|
||||
'purchase_package_id'=> intval($purchase_package_id),
|
||||
'current_package_id' => intval($cur_sub_id),
|
||||
'verified' => TRUE,
|
||||
'verification' => $this->ipsclass->input['verification'],
|
||||
'subscription_id' => '0-'.intval($member_id),
|
||||
'transaction_id' => $_REQUEST['order_number'] .'x'.time() );
|
||||
'transaction_id' => $this->ipsclass->input['order_number'] .'x'.time() );
|
||||
|
||||
//--------------------------------------
|
||||
// Sort out payment status
|
||||
@@ -367,6 +370,27 @@ class class_gw_module EXTENDS class_gateway
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// INSTALL Gateway...
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function install_gateway()
|
||||
{
|
||||
//--------------------------------------
|
||||
// DB queries
|
||||
//--------------------------------------
|
||||
|
||||
$this->db_info = array( 'human_title' => '2CheckOut',
|
||||
'human_desc' => "All major credit cards accepted. See <a href='http://www.2checkout.com/cgi-bin/aff.2c?affid=28376' target='_blank'>2CheckOut</a> for more information.",
|
||||
'module_name' => $this->i_am,
|
||||
'allow_creditcards' => 1,
|
||||
'allow_auto_validate' => 1,
|
||||
'default_currency' => 'USD' );
|
||||
|
||||
|
||||
$this->install_lang = array( 'gw_'.$this->i_am => 'Click the button below to complete this order via our secure online payment page.' );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user