Version 2.3.6

This commit is contained in:
Neo committed 2025-12-19 00:26:08 -08:00
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.' );
}
}
@@ -114,15 +114,22 @@ class class_gw_module EXTENDS class_gateway
$this->core_add_hidden_field( "x_amount" , $items['package_cost'] );
$this->core_add_hidden_field( "x_currency_code" , $items['currency_code'] );
$this->core_add_hidden_field( "x_description" , $items['package_title'] );
$this->core_add_hidden_field( "x_relay_response" , 'TRUE' );
#$this->core_add_hidden_field( "x_relay_response" , 'TRUE' );
$this->core_add_hidden_field( "x_receipt_link_method" , 'POST' );
$this->core_add_hidden_field( "x_receipt_link_text" , 'Return to our site!' );
$this->core_add_hidden_field( "x_receipt_link_url" , GW_URL_VALIDATE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
$this->core_add_hidden_field( "x_show_form" , 'PAYMENT_FORM' );
$this->core_add_hidden_field( "x_test_request" , 'FALSE' );
$this->core_add_hidden_field( "x_fp_hash" , $fp_hash );
$this->core_add_hidden_field( "x_fp_timestamp" , $fp_time );
$this->core_add_hidden_field( "x_fp_sequence" , $fp_seq );
$this->core_add_hidden_field( "x_relay_url" , GW_URL_VALIDATE );
#$this->core_add_hidden_field( "x_relay_url" , GW_URL_VALIDATE );
$this->core_add_hidden_field( "x_invoice_num" , $fp_time.'-'.$fp_seq.'-'.$items['currency_code'] );
//$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();
}
@@ -142,15 +149,22 @@ class class_gw_module EXTENDS class_gateway
$this->core_add_hidden_field( "x_amount" , $items['ttr_balance'] );
$this->core_add_hidden_field( "x_currency_code" , $items['currency_code'] );
$this->core_add_hidden_field( "x_description" , $items['package_title'] );
$this->core_add_hidden_field( "x_relay_response" , 'TRUE' );
$this->core_add_hidden_field( "x_receipt_link_method" , 'POST' );
$this->core_add_hidden_field( "x_receipt_link_text" , 'Return to our site!' );
$this->core_add_hidden_field( "x_receipt_link_url" , GW_URL_VALIDATE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
#$this->core_add_hidden_field( "x_relay_response" , 'TRUE' );
$this->core_add_hidden_field( "x_show_form" , 'PAYMENT_FORM' );
$this->core_add_hidden_field( "x_test_request" , 'FALSE' );
$this->core_add_hidden_field( "x_fp_hash" , $fp_hash );
$this->core_add_hidden_field( "x_fp_timestamp" , $fp_time );
$this->core_add_hidden_field( "x_fp_sequence" , $fp_seq );
$this->core_add_hidden_field( "x_relay_url" , GW_URL_VALIDATE );
#$this->core_add_hidden_field( "x_relay_url" , GW_URL_VALIDATE );
$this->core_add_hidden_field( "x_invoice_num" , $fp_time.'-'.$fp_seq.'-'.$items['currency_code'] );
//$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();
}
@@ -235,14 +249,14 @@ class class_gw_module EXTENDS class_gateway
// Check hash
//--------------------------------------
list( $fp_time, $fp_seq, $currency_code, ) = explode( '-', $_REQUEST['x_invoice_num'] );
list( $purchase_package_id, $member_id, $cur_sub_id, ) = explode( 'x', trim($_REQUEST['x_cust_id']) );
list( $fp_time, $fp_seq, $currency_code, ) = explode( '-', $this->ipsclass->input['x_invoice_num'] );
list( $purchase_package_id, $member_id, $cur_sub_id, ) = explode( 'x', trim($this->ipsclass->input['x_cust_id']) );
$in_hash = $_REQUEST['x_md5_hash'] ? $_REQUEST['x_md5_hash'] : $_REQUEST['x_MD5_Hash'];
$in_hash = $this->ipsclass->input['x_md5_hash'] ? $this->ipsclass->input['x_md5_hash'] : $this->ipsclass->input['x_MD5_Hash'];
$txn_key = $extra['company_email'];
$fp_hash = $this->my_calculatefp( $extra['vendor_id'], $txn_key, $_REQUEST['x_amount'], intval($fp_seq), intval($fp_time), trim($currency_code) );
$an_response_code = $_REQUEST['x_response_code'];
$test_hash = strtoupper( md5( $extra['vendor_id'] . $_REQUEST['x_trans_id'] . $_REQUEST['x_amount']) );
$fp_hash = $this->my_calculatefp( $extra['vendor_id'], $txn_key, $this->ipsclass->input['x_amount'], intval($fp_seq), intval($fp_time), trim($currency_code) );
$an_response_code = $this->ipsclass->input['x_response_code'];
$test_hash = strtoupper( md5( $extra['vendor_id'] . $this->ipsclass->input['x_trans_id'] . $this->ipsclass->input['x_amount']) );
if ( $in_hash != $test_hash )
{
@@ -258,21 +272,20 @@ class class_gw_module EXTENDS class_gateway
$this->error = 'not_valid';
return array( 'verified' => FALSE );
}
//--------------------------------------
// Populate return array
//--------------------------------------
$return = array( 'currency_code' => trim($currency_code),
'payment_amount' => $_REQUEST['x_amount'],
'payment_amount' => $this->ipsclass->input['x_amount'],
'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['x_trans_id'] );
'transaction_id' => $this->ipsclass->input['x_trans_id'] );
//--------------------------------------
// Sort out payment status
@@ -187,10 +187,10 @@ class class_gateway
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Content-Length: " . strlen($post_back_str) . "\r\n\r\n";
socket_set_timeout($fp, 30);
if ( $fp = fsockopen( $urls['sock_url'], $port, $errno, $errstr, 30 ) )
{
socket_set_timeout($fp, 30);
fwrite($fp, $header . $post_back_str);
while ( ! feof($fp) )
@@ -289,6 +289,26 @@ class class_gw_module EXTENDS class_gateway
}
/*-------------------------------------------------------------------------*/
// INSTALL Gateway...
/*-------------------------------------------------------------------------*/
function install_gateway()
{
//--------------------------------------
// DB queries
//--------------------------------------
$this->db_info = array( 'human_title' => 'Post Service',
'human_desc' => 'You can use this method if you wish to send us a check, postal order or international money order.',
'module_name' => $this->i_am,
'allow_creditcards' => 0,
'allow_auto_validate' => 0,
'default_currency' => 'USD' );
$this->install_lang = array( 'gw_'.$this->i_am => 'Click here to continue...' );
}
}
@@ -109,8 +109,10 @@ class class_gw_module EXTENDS class_gateway
$this->core_add_hidden_field( "email" , $items['company_email'] );
$this->core_add_hidden_field( "From_email" , $items['member_email'] );
$this->core_add_hidden_field( "status" , 'live' );
$this->core_add_hidden_field( "responderurl" , GW_URL_VALIDATE );
$this->core_add_hidden_field( "returnurl" , GW_URL_PAYDONE );
$this->core_add_hidden_field( "responderurl" , GW_URL_VALIDATE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
$this->core_add_hidden_field( "returnurl" , GW_URL_PAYDONE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
//$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();
}
@@ -126,8 +128,10 @@ class class_gw_module EXTENDS class_gateway
$this->core_add_hidden_field( "email" , $items['company_email'] );
$this->core_add_hidden_field( "From_email" , $items['member_email'] );
$this->core_add_hidden_field( "status" , 'live' );
$this->core_add_hidden_field( "responderurl" , GW_URL_VALIDATE );
$this->core_add_hidden_field( "returnurl" , GW_URL_PAYDONE );
$this->core_add_hidden_field( "responderurl" , GW_URL_VALIDATE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
$this->core_add_hidden_field( "returnurl" , GW_URL_PAYDONE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
//$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();
}
@@ -257,6 +261,7 @@ class class_gw_module EXTENDS class_gateway
'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' => $_POST['transaction_id'] );
@@ -385,8 +390,27 @@ class class_gw_module EXTENDS class_gateway
return $return;
}
/*-------------------------------------------------------------------------*/
// INSTALL Gateway...
/*-------------------------------------------------------------------------*/
function install_gateway()
{
//--------------------------------------
// DB queries
//--------------------------------------
$this->db_info = array( 'human_title' => 'NOCHEX',
'human_desc' => 'UK debit and credit cards, such as Switch, Solo and VISA Delta. All prices will be converted into GBP (UK Pounds) upon ordering.',
'module_name' => $this->i_am,
'allow_creditcards' => 1,
'allow_auto_validate' => 1,
'default_currency' => 'GBP' );
$this->install_lang = array( 'gw_'.$this->i_am => "Click the button below to complete this order via NOCHEX's website. All costs will be converted into GBP for NOCHEX's website" );
}
}
@@ -95,9 +95,11 @@ class class_gw_module EXTENDS class_gateway
$this->core_add_hidden_field( "src" , 1 );
$this->core_add_hidden_field( "rm" , 2 );
$this->core_add_hidden_field( "no_note" , 1 );
$this->core_add_hidden_field( "notify_url" , GW_URL_VALIDATE );
$this->core_add_hidden_field( "return" , GW_URL_PAYDONE );
$this->core_add_hidden_field( "cancel_return", GW_URL_PAYCANCEL );
$this->core_add_hidden_field( "notify_url" , GW_URL_VALIDATE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
$this->core_add_hidden_field( "return" , GW_URL_PAYDONE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
$this->core_add_hidden_field( "cancel_return", GW_URL_PAYCANCEL . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
//$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();
}
@@ -126,9 +128,11 @@ class class_gw_module EXTENDS class_gateway
$this->core_add_hidden_field( "src" , 1 );
$this->core_add_hidden_field( "no_note" , 1 );
$this->core_add_hidden_field( "rm" , 2 );
$this->core_add_hidden_field( "notify_url" , GW_URL_VALIDATE );
$this->core_add_hidden_field( "return" , GW_URL_PAYDONE );
$this->core_add_hidden_field( "cancel_return", GW_URL_PAYCANCEL );
$this->core_add_hidden_field( "notify_url" , GW_URL_VALIDATE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
$this->core_add_hidden_field( "return" , GW_URL_PAYDONE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
$this->core_add_hidden_field( "cancel_return", GW_URL_PAYCANCEL . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
//$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();
}
@@ -148,9 +152,11 @@ class class_gw_module EXTENDS class_gateway
$this->core_add_hidden_field( "business" , $items['company_email'] );
$this->core_add_hidden_field( "no_shipping" , 1 );
$this->core_add_hidden_field( "src" , 1 );
$this->core_add_hidden_field( "notify_url" , GW_URL_VALIDATE );
$this->core_add_hidden_field( "return" , GW_URL_PAYDONE );
$this->core_add_hidden_field( "cancel_return", GW_URL_PAYCANCEL );
$this->core_add_hidden_field( "notify_url" , GW_URL_VALIDATE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
$this->core_add_hidden_field( "return" , GW_URL_PAYDONE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
$this->core_add_hidden_field( "cancel_return", GW_URL_PAYCANCEL . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
//$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();
}
@@ -171,9 +177,11 @@ class class_gw_module EXTENDS class_gateway
$this->core_add_hidden_field( "amount" , $items['ttr_balance'] );
$this->core_add_hidden_field( "no_shipping" , 1 );
$this->core_add_hidden_field( "src" , 1 );
$this->core_add_hidden_field( "notify_url" , GW_URL_VALIDATE );
$this->core_add_hidden_field( "return" , GW_URL_PAYDONE );
$this->core_add_hidden_field( "cancel_return", GW_URL_PAYCANCEL );
$this->core_add_hidden_field( "notify_url" , GW_URL_VALIDATE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
$this->core_add_hidden_field( "return" , GW_URL_PAYDONE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
$this->core_add_hidden_field( "cancel_return", GW_URL_PAYCANCEL . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
//$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();
}
@@ -314,6 +322,7 @@ class class_gw_module EXTENDS class_gateway
'purchase_package_id'=> intval($_POST['item_number']),
'current_package_id' => intval($cur_sub_id),
'verified' => TRUE,
'verification' => $this->ipsclass->input['verification'],
'subscription_id' => $_POST['subscr_id'],
'transaction_id' => $_POST['txn_id'] );
@@ -575,6 +584,26 @@ class class_gw_module EXTENDS class_gateway
}
/*-------------------------------------------------------------------------*/
// INSTALL Gateway...
/*-------------------------------------------------------------------------*/
function install_gateway()
{
//--------------------------------------
// DB queries
//--------------------------------------
$this->db_info = array( 'human_title' => 'PayPal',
'human_desc' => 'All major credit cards accepted. See <a href="https://www.paypal.com" target="_blank">PayPal</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 PayPal's website. All costs will be converted into USD for PayPal's website" );
}
}
@@ -113,26 +113,31 @@ class class_gw_module EXTENDS class_gateway
// Generate crypt string
//---------------------------------------
$plain = "VendorTxCode=" . rand(0,1000)."x{$items['member_unique_id']}x{$items['package_id']}x0" . "&";
$plain = "VendorTxCode=" . (rand(0,32000)*rand(0,32000))."x{$items['member_unique_id']}x{$items['package_id']}x0" . "&";
$plain .= "Amount=" . $items['package_cost'] . "&";
$plain .= "Currency=" . $items['currency_code'] . "&";
$plain .= "Description=" . $items['package_title'] ."&";
$plain .= "SuccessURL=" . GW_URL_VALIDATE . "&";
$plain .= "FailureURL=" . GW_URL_VALIDATE . "&";
$plain .= "SuccessURL=" . GW_URL_VALIDATE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) . "&";
$plain .= "FailureURL=" . GW_URL_VALIDATE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) . "&";
$plain .= "CustomerName=&";
$plain .= "CustomerEmail=" . $items['member_email'] . "&";
$plain .= "VendorEMail=" . $items['company_email'] . "&";
$plain .= "DeliveryAddress=&";
$plain .= "DeliveryPostCode=&";
$plain .= "BillingAddress=&";
$plain .= "BillingPostCode=";
$plain .= "BillingPostCode=&";
$plain .= "ContactNumber=&";
$plain .= "ContactFax=&";
$plain .= "AllowGiftAid=&";
$plain .= "ApplyAVSCV2=&";
$plain .= "Apply3DSecure=";
$crypt = base64_encode( $this->_simple_xor( $plain, $password ) );
$this->core_add_hidden_field( "Crypt" , $crypt );
$this->core_add_hidden_field( "Vendor" , $username );
$this->core_add_hidden_field( "TxType" , 'PAYMENT' );
$this->core_add_hidden_field( "VPSProtocol" , '2.21' );
$this->core_add_hidden_field( "VPSProtocol" , '2.22' );
return $this->core_compile_hidden_fields();
}
@@ -150,26 +155,31 @@ class class_gw_module EXTENDS class_gateway
// Generate crypt string
//---------------------------------------
$plain = "VendorTxCode=" . rand(0,1000)."x{$items['member_unique_id']}x{$items['package_id']}x{$items['ttr_package_id']}" . "&";
$plain = "VendorTxCode=" . (rand(0,32000)*rand(0,32000))."x{$items['member_unique_id']}x{$items['package_id']}x{$items['ttr_package_id']}" . "&";
$plain .= "Amount=" . $items['ttr_balance'] . "&";
$plain .= "Currency=" . $items['currency_code'] . "&";
$plain .= "Description=" . $items['package_title'] ."&";
$plain .= "SuccessURL=" . GW_URL_VALIDATE . "&";
$plain .= "FailureURL=" . GW_URL_VALIDATE . "&";
$plain .= "SuccessURL=" . GW_URL_VALIDATE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) . "&";
$plain .= "FailureURL=" . GW_URL_VALIDATE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) . "&";
$plain .= "CustomerName=&";
$plain .= "CustomerEmail=" . $items['member_email'] . "&";
$plain .= "VendorEMail=" . $items['company_email'] . "&";
$plain .= "DeliveryAddress=&";
$plain .= "DeliveryPostCode=&";
$plain .= "BillingAddress=&";
$plain .= "BillingPostCode=";
$plain .= "BillingPostCode=&";
$plain .= "ContactNumber=&";
$plain .= "ContactFax=&";
$plain .= "AllowGiftAid=&";
$plain .= "ApplyAVSCV2=&";
$plain .= "Apply3DSecure=";
$crypt = base64_encode( $this->_simple_xor( $plain, $password ) );
$this->core_add_hidden_field( "Crypt" , $crypt );
$this->core_add_hidden_field( "Vendor" , $username );
$this->core_add_hidden_field( "TxType" , 'PAYMENT' );
$this->core_add_hidden_field( "VPSProtocol" , '2.21' );
$this->core_add_hidden_field( "VPSProtocol" , '2.22' );
return $this->core_compile_hidden_fields();
}
@@ -292,8 +302,9 @@ class class_gw_module EXTENDS class_gateway
'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' => $values['VPSTxID'] );
'transaction_id' => $values['VPSTxId'] );
//--------------------------------------
// Sort out payment status
@@ -432,8 +443,20 @@ class class_gw_module EXTENDS class_gateway
function _get_token($thisString)
{
$Tokens = array("Status","StatusDetail","VendorTxCode","VPSTxID","TxAuthNo","Amount","AVSCV2");
$Tokens = array(
"Status",
"StatusDetail",
"VendorTxCode",
"VPSTxId",
"TxAuthNo",
"Amount",
"AVSCV2",
"AddressResult",
"PostCodeResult",
"CV2Result",
"GiftAid",
"3DSecureStatus",
"CAVV" );
$output = array();
$resultArray = array();
@@ -468,6 +491,27 @@ class class_gw_module EXTENDS class_gateway
return $output;
}
/*-------------------------------------------------------------------------*/
// INSTALL Gateway...
/*-------------------------------------------------------------------------*/
function install_gateway()
{
//--------------------------------------
// DB queries
//--------------------------------------
$this->db_info = array( 'human_title' => 'Protx',
'human_desc' => 'Accepts all major credit cards',
'module_name' => $this->i_am,
'allow_creditcards' => 1,
'allow_auto_validate' => 1,
'default_currency' => 'GBP' );
$this->install_lang = array( 'gw_'.$this->i_am => "Click the button below to complete this order via Protx's website" );
}
}
@@ -109,11 +109,13 @@ class class_gw_module EXTENDS class_gateway
$this->core_add_hidden_field( "vendorid" , $items['vendor_id'] );
$this->core_add_hidden_field( "buttonid" , "Buy" );
$this->core_add_hidden_field( "item1" , $items['package_cost'] );
$this->core_add_hidden_field( "myurl" , GW_URL_PAYDONE );
$this->core_add_hidden_field( "myurl" , GW_URL_PAYDONE . "&verification=" . md5( $items['member_unique_id'] . $items['package_id'] . $this->ipsclass->vars['sql_pass'] ) );
$this->core_add_hidden_field( "act" , "paysubs" );
$this->core_add_hidden_field( "CODE" , "incoming" );
$this->core_add_hidden_field( "type" , "safshop" );
//$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();
}
@@ -217,6 +219,7 @@ class class_gw_module EXTENDS class_gateway
'purchase_package_id'=> intval($purchase_package_id),
'current_package_id' => intval($cur_sub_id),
'verified' => $_POST['safshopresult'] ? TRUE : FALSE,
'verification' => $this->ipsclass->input['verification'],
'subscription_id' => '0-'.intval($member_id),
'transaction_id' => $_POST['safshopresult'] );
@@ -321,6 +324,26 @@ class class_gw_module EXTENDS class_gateway
}
/*-------------------------------------------------------------------------*/
// INSTALL Gateway...
/*-------------------------------------------------------------------------*/
function install_gateway()
{
//--------------------------------------
// DB queries
//--------------------------------------
$this->db_info = array( 'human_title' => 'Safshop',
'human_desc' => 'Accepts all major credit cards',
'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 Safshop's website. All costs will be converted into USD for Safshop's website" );
}
}
@@ -110,6 +110,8 @@ class class_gw_module EXTENDS class_gateway
$this->core_add_hidden_field( "responderurl" , GW_URL_VALIDATE );
$this->core_add_hidden_field( "returnurl" , GW_URL_PAYDONE );
$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();
}
@@ -127,6 +129,8 @@ class class_gw_module EXTENDS class_gateway
$this->core_add_hidden_field( "responderurl" , GW_URL_VALIDATE );
$this->core_add_hidden_field( "returnurl" , GW_URL_PAYDONE );
$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();
}
@@ -248,6 +252,7 @@ class class_gw_module EXTENDS class_gateway
'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' => $_POST['transaction_id'] );
@@ -28,8 +28,8 @@
if ( ! defined( 'IN_IPB' ) )
{
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
exit();
}
class customsubs {
@@ -1,10 +1 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
<meta name="author" content="Êîìïàíèÿ IBResource è Invision Power Services Inc.">
<title>Îøèáêà ðóññêîé âåðñèè Invision Power Board</title>
</head><body>
<h1>Îøèáêà <a href="http://www.ibresource.ru/">ðóññêîé âåðñèè Invision Power Board</a></h1>
<font size="4">Âû ïîïàëè íà íåñóùåñòâóþùóþ ñòðàíèöó!<br>Ïîæàëóéñòà íàæìèòå íà êíîïî÷êó &laquo;<b>Íàçàä</b>&raquo; â&nbsp;âàøåì áðàóçåðå äëÿ âîçâðàùåíèÿ íà ïðåäûäóùóþ ñòðàíèöó.</font>
</body>
</html>
<html>␍<head><title>Invision Power Board - Bulletin Board System</title></head>␍<body>␍<h1>403: Invision Power Board -> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://anonym.to/http://www.invisionboard.com/">Invision Power Board</a>␍</body>␍</html>␍
@@ -1,10 +1 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
<meta name="author" content="Êîìïàíèÿ IBResource è Invision Power Services Inc.">
<title>Îøèáêà ðóññêîé âåðñèè Invision Power Board</title>
</head><body>
<h1>Îøèáêà <a href="http://www.ibresource.ru/">ðóññêîé âåðñèè Invision Power Board</a></h1>
<font size="4">Âû ïîïàëè íà íåñóùåñòâóþùóþ ñòðàíèöó!<br>Ïîæàëóéñòà íàæìèòå íà êíîïî÷êó &laquo;<b>Íàçàä</b>&raquo; â&nbsp;âàøåì áðàóçåðå äëÿ âîçâðàùåíèÿ íà ïðåäûäóùóþ ñòðàíèöó.</font>
</body>
</html>
<html>␍<head><title>Invision Power Board - Bulletin Board System</title></head>␍<body>␍<h1>403: Invision Power Board -> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://anonym.to/http://www.invisionboard.com/">Invision Power Board</a>␍</body>␍</html>␍