cancel
Showing results for 
Search instead for 
Did you mean: 

Having Issue with Billing and Shipping information with + sign

Hi

 

I am getting problem in Transaction detail.

in billing inforamtion it shows + replacing space while in shipping inforamtion it shows correctly.

 

Can anybody let me know any suggestions. 

 

 

----------------- Code ----------------------- 

 

"x_login" =>$this->config->get('srs_authorize_threed_username'), // "API_LOGIN_ID",
"x_tran_key" => $this->config->get('srs_authorize_threed_transaction_key'), //"TRANSACTION_KEY",

"x_invoice_num" => $this->session->data['order_id'] , //time(),
"x_version" => "3.1",
"x_delim_data" => "TRUE",
"x_delim_char" => "|",
"x_relay_response" => "FALSE",
"x_currency_code" => $this->currency->getCode(),
"x_email" =>$order_info['email'],

"x_first_name" => html_entity_decode(urldecode($order_info['payment_firstname']), ENT_QUOTES, 'UTF-8'),
"x_last_name" => html_entity_decode(urldecode($order_info['payment_lastname']), ENT_QUOTES, 'UTF-8'),
"x_company" => html_entity_decode(urldecode($order_info['payment_company']), ENT_QUOTES, 'UTF-8'),
"x_address" => html_entity_decode(urldecode($order_info['payment_address_1']), ENT_QUOTES, 'UTF-8'),
"x_city" => html_entity_decode(urldecode($order_info['payment_city']), ENT_QUOTES, 'UTF-8'),
"x_state" => html_entity_decode(urldecode($order_info['payment_zone']), ENT_QUOTES, 'UTF-8'),
"x_zip" => html_entity_decode(urldecode($order_info['payment_postcode']), ENT_QUOTES, 'UTF-8'),
"x_country" => html_entity_decode(urldecode($order_info['payment_country']), ENT_QUOTES, 'UTF-8'),

"x_ship_to_first_name" => html_entity_decode(urldecode($order_info['payment_firstname']), ENT_QUOTES, 'UTF-8'),
"x_ship_to_last_name" => html_entity_decode(urldecode($order_info['payment_lastname']), ENT_QUOTES, 'UTF-8'),
"x_ship_to_company" => html_entity_decode(urldecode($order_info['payment_company']), ENT_QUOTES, 'UTF-8'),
"x_ship_to_address" => html_entity_decode(urldecode($order_info['payment_address_1']), ENT_QUOTES, 'UTF-8'),
"x_ship_to_city" => html_entity_decode(urldecode($order_info['payment_city']), ENT_QUOTES, 'UTF-8'),
"x_ship_to_state" => html_entity_decode(urldecode($order_info['payment_zone']), ENT_QUOTES, 'UTF-8'),
"x_ship_to_zip" => html_entity_decode(urldecode($order_info['payment_postcode']), ENT_QUOTES, 'UTF-8'),
"x_ship_to_country" => html_entity_decode(urldecode($order_info['payment_country']), ENT_QUOTES, 'UTF-8'),


"x_phone" => $order_info['telephone'],
"x_customer_ip" => $this->request->server['REMOTE_ADDR'],
"x_card_code" => $cvv2Number,

"x_type" => "AUTH_CAPTURE",
"x_method" => "CCA",
"x_card_num" =>$creditCardNumber , // "4111111111111111",
"x_exp_date" =>$endpadDateMonth . substr($expDateYear,2,2), //"0115",

"x_amount" => $amount , //"19.91",
"x_description" => $desc, // "Sample Transaction",
"x_first_name" => $firstNameship , //"John",
"x_last_name" => $lastNameship, //"Doe",
"x_address" => $address1 . " " . $address2 , // "1234 Street",
"x_state" => $state , // "WA",
"x_zip" => $zip //"98004"


// Additional fields can be added here as outlined in the AIM integration
// guide at: http://developer.authorize.net
);

// This section takes the input fields and converts them to the proper format
// for an http post. For example: "x_login=username&x_tran_key=a1B2c3D4"
$post_string = "";
foreach( $post_values as $key => $value )
{

$post_string .= "$key=" . rawurlencode( $value ) . "&";
}
$post_string = rtrim( $post_string, "& " );

 

 

------------------------------------------------------------------------------------------------------------------------

 

 

Transaction Detail

 

Order Information
Invoice #:70
Description:Your+Store+Purchase+
Customer Billing Information
Name:dev gajjar
Company:Shriramsoft
Address:75+Farringdon+Rd+
City:London
State/Province:Essex
Zip Code:EC1M+3JY
Country:United Kingdom
Phone:919979907xxx
Fax: 
Email:shriramsoft@gmail.com
 
Customer ID: 
Customer Type: 
Customer TaxID/SSN: 
 
DL Number: 
DL State: 
DL DOB: 
Shipping Information
Name:dev gajjar
Company:Shriramsoft
Address:75 Farringdon Rd
City:London
State/Province:Essex
Zip Code:EC1M 3JY
Country:United Kingdom

 

 

 

devatsrs
Member
1 REPLY 1

 

Hi,

 

It's impossible for us to give a precise answer without knowing the format that the data is starting in, but seeing + symbols in place of spaces would indicate that the data is at least partially URL encoded.

 

Thanks,

Joy

Joy
Administrator Administrator
Administrator