<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Character Issues in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49515#M25084</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to take payments through my website. I have a manual paymnt system. I am having an issue where "spaces" between characters changes to a "+" symbol and "@" symbol chnages to %40. whichis preventing emails to be send out to my customers.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Feb 2015 05:53:06 GMT</pubDate>
    <dc:creator>vkreator</dc:creator>
    <dc:date>2015-02-03T05:53:06Z</dc:date>
    <item>
      <title>Character Issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49515#M25084</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to take payments through my website. I have a manual paymnt system. I am having an issue where "spaces" between characters changes to a "+" symbol and "@" symbol chnages to %40. whichis preventing emails to be send out to my customers.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2015 05:53:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49515#M25084</guid>
      <dc:creator>vkreator</dc:creator>
      <dc:date>2015-02-03T05:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Character Issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49517#M25085</link>
      <description>&lt;P&gt;On which field? which api?&amp;nbsp; sdks?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2015 12:12:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49517#M25085</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2015-02-03T12:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Character Issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49523#M25091</link>
      <description>&lt;P&gt;I am using PHP as a language and AIM, get this while printing Receipts from Account&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;Valerie+ Lewis&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;706+Locust+St&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;Bastrop, TX+ 78602&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;USA&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;Phone: ********&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;support%40winprotechnologies.com&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2015 05:29:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49523#M25091</guid>
      <dc:creator>vkreator</dc:creator>
      <dc:date>2015-02-04T05:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Character Issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49524#M25092</link>
      <description>&lt;P&gt;I have uploaded a sample transaction here :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/0B6rDRZq9BBqQTzNjQlIzd2ZhS1E/view?usp=sharing" target="_blank" title="Sample Receipt"&gt;Sample Receipt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2015 05:32:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49524#M25092</guid>
      <dc:creator>vkreator</dc:creator>
      <dc:date>2015-02-04T05:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Character Issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49528#M25095</link>
      <description>&lt;P&gt;That the billing info, how are you passing it to authorize.net ? since it is AIM, did you encode it before sending it?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2015 14:10:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49528#M25095</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2015-02-04T14:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Character Issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49542#M25108</link>
      <description>&lt;PRE&gt;&amp;lt;div class="contents" style="width:70%;  margin:0px auto;"&amp;gt;
&amp;lt;?php
	if ($_POST){
	
		$firstName =urlencode( $_POST['firstname']);
		$lastName =urlencode($_POST['lastname']);
		$creditCardType =urlencode( $_POST['cardtype']);
		$creditCardNumber = urlencode($_POST['cardnumber']);
		$expDateMonth =urlencode( $_POST['cardmonth']);		
		$padDateMonth = str_pad($expDateMonth, 2, '0', STR_PAD_LEFT);		
		$expDateYear =urlencode( $_POST['cardyear']);
		$cvv2Number = urlencode($_POST['cardcvv']);
		$address1 = urlencode($_POST['address']);
		$city = urlencode($_POST['city']);
		$state =urlencode( $_POST['state']);
		$zip = urlencode($_POST['zip']);		
		$customer_id =urlencode( $_POST['customerid']);
		$phone = urlencode($_POST['phone']);
		$amount = "300";
		$currencyCode="USD";
		$paymentType="Sale";
		$date = $expDateMonth.$expDateYear;
			
		$post_values = array(
			"x_login"			=&amp;gt; '********',   // change here
			"x_tran_key"		=&amp;gt; '**************', // change here
			"x_version"			=&amp;gt; "3.1",
			"x_delim_data"		=&amp;gt; "TRUE",
			"x_delim_char"		=&amp;gt; "|",
			"x_relay_response"	=&amp;gt; "FALSE",
			//"x_market_type"		=&amp;gt; "2",
			"x_device_type"		=&amp;gt; "1",
			"x_type"			=&amp;gt; "AUTH_CAPTURE",
			"x_method"			=&amp;gt; "CC",
			"x_card_num"		=&amp;gt; $creditCardNumber,
			//"x_exp_date"		=&amp;gt; "0115",
			"x_exp_date"		=&amp;gt; $date,
			"x_amount"			=&amp;gt; $amount,
			//"x_description"		=&amp;gt; "Sample Transaction",
			"x_first_name"		=&amp;gt; $firstName,
			"x_last_name"		=&amp;gt; $lastName,
			"x_address"			=&amp;gt; $address1,
			"x_state"			=&amp;gt; $state,
			"x_response_format"	=&amp;gt; "1",
			"x_zip"				=&amp;gt; $zip,		
			"x_customer_id"	    =&amp;gt; $customer_id,
			"x_phone"			=&amp;gt; $phone			
		);


		$post_string = "";
		foreach( $post_values as $key =&amp;gt; $value )$post_string .= "$key=" . urlencode( $value ) . "&amp;amp;";
		$post_string = rtrim($post_string,"&amp;amp; ");

		//for test mode use the following url
		$post_url = "https://test.authorize.net/gateway/transact.dll"; // comment it on live
		//for live use this url
		// $post_url = "https://secure.authorize.net/gateway/transact.dll"; // remove comment it on live

		$request = curl_init($post_url); 
		curl_setopt($request, CURLOPT_HEADER, 0); 
		curl_setopt($request, CURLOPT_RETURNTRANSFER, 1); 
		curl_setopt($request, CURLOPT_POSTFIELDS, $post_string);
		curl_setopt($request, CURLOPT_SSL_VERIFYPEER, FALSE); 
		$post_response = curl_exec($request); 

		curl_close ($request); 
		$response_array = explode($post_values["x_delim_char"],$post_response);

		if($response_array[0]==2||$response_array[0]==3) 
		{
			//success 
			echo '&amp;lt;div class="response"&amp;gt;';
			echo '&amp;lt;b&amp;gt;Payment Failure&amp;lt;/b&amp;gt;. &amp;lt;br&amp;gt;';
			echo '&amp;lt;b&amp;gt;Error String&amp;lt;/b&amp;gt;: '.$response_array[3];
			echo '&amp;lt;/div&amp;gt;';
		}
		else
		{
			$ptid = $response_array[6];
			$ptidmd5 = $response_array[7];
			echo "Payment Success";
			
			// Mail On payment success
			
			$to = "fff@gmail.com";  // change here
			$subject = "Payment Successfully Submitted :";
			
			$txt = "Hello Admin, \r\n \r\n";
			$txt .= "Details of customer is as follows : \r\n";
			$txt .= "Name : " . $firstName . " " .$lastName ."\r\n";
			$txt .= "Address : ". $address1 ."\r\n";
			$txt .= "City : ". $city ."\r\n";
			$txt .= "State : ". $state ."\r\n";
			$txt .= "Phone No : ". $phone ."\r\n";
			$txt .= "Paid Amount : ". $amount ."\r\n";
			$txt .= "\r\n \r\n \r\n";
			
			$headers = "From: admin@greenforce.com" . "\r\n" . // change here
			"CC: somebodyelse@example.com";  // change here

			mail($to,$subject,$txt,$headers);
		}
	}
?&amp;gt;

&amp;lt;style type="text/css"&amp;gt;
&amp;lt;!--
.clear {clear:both; line-height:1px; font-size:1px; height:1px; }
.contents {background-color:#EDF4F8; padding:10px; border:2px dashed #C2DAE7; }
.leftbox {float:left; border-right:1px dashed #cecece; width:48%; }
.leftone {float: left; width:150px; padding:3px; margin-left:5px; }
.maindiv {width:700px; border:0px dashed #cecece; overflow:hidden; }
.rightbox {float:left; width:48%; margin-left:5px; }
.rightone {float:left; padding:3px;}
.sel {border:1px inset gray; }
--&amp;gt;
.response {
    border: 1px solid #f00000;
    color: #f00000;
    padding: 10px;
}
&amp;lt;/style&amp;gt;
  &amp;lt;form action="&amp;lt;?php echo $_SERVER["PHP_SELF"];?&amp;gt;" method="post" name="payform" id="payform"&amp;gt;
    &amp;lt;div class="maindiv"&amp;gt;
      &amp;lt;div class="leftbox"&amp;gt;
        &amp;lt;div class="leftone" style="color: #0099FF"&amp;gt;&amp;lt;strong&amp;gt;Personal Details&amp;lt;/strong&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone" style="width:80px;"&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;
		
        &amp;lt;div class="leftone"&amp;gt;Customer id&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
          &amp;lt;input name="customerid" type="text" /&amp;gt;
        &amp;lt;/div&amp;gt;        
		&amp;lt;div class="leftone"&amp;gt;First Name&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
          &amp;lt;input name="firstname" type="text" /&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="leftone"&amp;gt;Last Name&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
          &amp;lt;input name="lastname" type="text" /&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="leftone"&amp;gt;Email&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
          &amp;lt;input name="email" type="text" /&amp;gt;
        &amp;lt;/div&amp;gt;
		&amp;lt;div class="leftone"&amp;gt;Phone No.&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
          &amp;lt;input name="phone" type="text" /&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="leftone"&amp;gt;Address&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
          &amp;lt;input name="address" type="text" /&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="leftone"&amp;gt;City&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
          &amp;lt;input name="city" type="text" /&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="leftone"&amp;gt;State&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
          &amp;lt;input name="state" type="text" maxlength="30" /&amp;gt;
        &amp;lt;/div&amp;gt;
	    &amp;lt;div class="leftone"&amp;gt;Zip&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
          &amp;lt;input name="zip" type="text" /&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/div&amp;gt;
      &amp;lt;div class="rightbox"&amp;gt;
        &amp;lt;div class="leftone" style="color: #0099FF"&amp;gt;&amp;lt;strong&amp;gt;Payment Details&amp;lt;/strong&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone" style="width:80px;"&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;
        &amp;lt;div class="leftone"&amp;gt;Card Type&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
          &amp;lt;select name="cardtype" &amp;gt;
            &amp;lt;option value="visa"&amp;gt;Visa&amp;lt;/option&amp;gt;
            &amp;lt;option value="MasterCard"&amp;gt;Master Card&amp;lt;/option&amp;gt;
            &amp;lt;option value="AmericanExpress"&amp;gt;American Express&amp;lt;/option&amp;gt;
          &amp;lt;/select&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="leftone"&amp;gt;Cardholder Name&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
          &amp;lt;input name="cardholder" type="text" /&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="leftone"&amp;gt;Card Number&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
          &amp;lt;input name="cardnumber" type="text" /&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="leftone"&amp;gt;Expiration &amp;lt;span style=" font:7pt arial; color:gray;"&amp;gt;[ mm / yyyy ]&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
          &amp;lt;input name="cardmonth" class="sel" type="text" style="width:40px;" /&amp;gt;
          &amp;amp;nbsp;
          &amp;lt;input type="text" name="cardyear" class="sel" style=" width:98px;" /&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="leftone"&amp;gt;CVV Number&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
            &amp;lt;input type="password" name="cardcvv"&amp;gt;
        &amp;lt;/div&amp;gt;
		&amp;lt;div class="leftone"&amp;gt;Amount&amp;lt;/div&amp;gt;
        &amp;lt;div class="rightone"&amp;gt;
          &amp;lt;input name="amount" type="text" /&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="leftone" style="width:255px; text-align:right;"&amp;gt;
          &amp;lt;input name="submit" type="submit" style="border:1px outset gray; width:100px;" value="Pay Now" /&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/div&amp;gt;
      &amp;lt;div class="clear"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;This is the total code that I have used in the form. Also, x_email is aslo used which doesn;t show in the code above but in live form it is.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2015 04:45:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49542#M25108</guid>
      <dc:creator>vkreator</dc:creator>
      <dc:date>2015-02-05T04:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Character Issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49544#M25110</link>
      <description>&lt;P&gt;You are double urlencode&lt;/P&gt;&lt;PRE&gt;$address1 = urlencode($_POST['address']);&lt;/PRE&gt;&lt;P&gt;which add to&lt;/P&gt;&lt;PRE&gt;$post_values&amp;nbsp;= array(&lt;BR /&gt;...&lt;BR /&gt;"x_address"&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;=&amp;gt; $address1,&lt;/PRE&gt;&lt;P&gt;Then you&lt;/P&gt;&lt;PRE&gt;foreach( $post_values as $key =&amp;gt; $value )$post_string .= "$key=" . urlencode( $value ) . "&amp;amp;";&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2015 12:21:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Character-Issues/m-p/49544#M25110</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2015-02-05T12:21:03Z</dc:date>
    </item>
  </channel>
</rss>

