<?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 Re: Fields in the Payment Gateway Response form validations in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29276#M15385</link>
    <description>&lt;P&gt;I would suggest validating your inputs BEFORE you post your information to &lt;A target="_blank" rel="nofollow" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, if there is an error, you just give the user the error and have them resolve the problem before you continue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so maybe, have a conditional branch that checks for errors and at the end of the branch, you can put the "pay now" button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if( first name is not ok)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; echo out an error to user. Have them go back and fix it.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else if (last name is not ok)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; echo out an error to user. Have them go back and fix it.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; pay now button!&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Aug 2012 14:03:47 GMT</pubDate>
    <dc:creator>butsags</dc:creator>
    <dc:date>2012-08-30T14:03:47Z</dc:date>
    <item>
      <title>Fields in the Payment Gateway Response form validations</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29260#M15377</link>
      <description>&lt;P&gt;Hi everyone. I am newbie to authorize.net and using SIM for payment gateway integration using php all works fine. i am using SIM API given in developer section in testing its work fine but i have an issue related to payment form their is no validation present in the form except for the field credit card number and expiry date. and my problem is that i want to validate all other fields in the form.The form is eaisly submited with empty fields and a receipt is generate.So please help me to solve this problem that how can i validate payment gateway form..thanks&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:04:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29260#M15377</guid>
      <dc:creator>mc</dc:creator>
      <dc:date>2012-08-30T13:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fields in the Payment Gateway Response form validations</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29264#M15379</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It would be helpful to know what language you are building on. I'm going to assume PHP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I udnerstand your question correctly, you have fields such as "First Name", "Last Name", "Birth Day", etc that you want to make sure that they are filling out?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:26:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29264#M15379</guid>
      <dc:creator>butsags</dc:creator>
      <dc:date>2012-08-30T13:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fields in the Payment Gateway Response form validations</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29266#M15380</link>
      <description>&lt;P&gt;ya i have these fields and i want to validate it on gateway form. and i am using PHP yes...so how can i validate the form. its urgent so please help me&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:28:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29266#M15380</guid>
      <dc:creator>mc</dc:creator>
      <dc:date>2012-08-30T13:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Fields in the Payment Gateway Response form validations</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29268#M15381</link>
      <description>&lt;P&gt;butsags can you please help about this issue.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:34:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29268#M15381</guid>
      <dc:creator>mc</dc:creator>
      <dc:date>2012-08-30T13:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fields in the Payment Gateway Response form validations</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29270#M15382</link>
      <description>&lt;P&gt;Well,&lt;/P&gt;&lt;P&gt;You can verify the name of your user and see if it matches the name on the credit card but i think your asking more of a fundamental question than that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your HTML, you should have a &amp;lt;form&amp;gt; tag that posts to your PHP. Inside the form tag, you should have all your inputs including your credit card number input, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each input, assign a name to the input. For example, if i wanted the users phone number, I would make an input such as:&lt;/P&gt;&lt;P&gt;&amp;lt;input type="text" name="&lt;STRONG&gt;phone_number&lt;/STRONG&gt;" value=""&amp;nbsp; /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then to get this value in the PHP, you would use $_POST["&lt;STRONG&gt;phone_number&lt;/STRONG&gt;"] (Notice how &lt;STRONG&gt;phone_number&lt;/STRONG&gt; is the NAME of the input. You can make the name of the input ANYTHING you want.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So to use this value, you can assign it to a PHP variable:&lt;/P&gt;&lt;P&gt;$phone_number = $_POST["&lt;STRONG&gt;phone_number&lt;/STRONG&gt;"];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;finally, you can run some checks on the data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if( trim($phone_number) == "" )&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; echo "I'm sorry, but you forgot to fill out your phone number. Please go back and try again.";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; //Continue checking other fields or even charge the credit card now!&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:37:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29270#M15382</guid>
      <dc:creator>butsags</dc:creator>
      <dc:date>2012-08-30T13:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fields in the Payment Gateway Response form validations</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29272#M15383</link>
      <description>&lt;P&gt;thanks for your suggestion. i want to show my code to you that as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;BR /&gt;require_once 'anet_php_sdk/AuthorizeNet.php'; // Include the SDK you downloaded in Step 2&lt;BR /&gt;$api_login_id = 'my id';&lt;BR /&gt;$transaction_key = 'my key';&lt;BR /&gt;$amount = $_REQUEST['amount'];&lt;BR /&gt;$product_name = $_REQUEST['pro_name'];&lt;BR /&gt;$quantity = $_REQUEST['quan'];&lt;BR /&gt;$email = $_REQUEST['email'];&lt;BR /&gt;$fp_timestamp = time();&lt;BR /&gt;$fp_sequence = "123" . time(); // Enter an invoice or other unique number.&lt;BR /&gt;$fingerprint = AuthorizeNetSIM_Form::getFingerprint($api_login_id,&lt;BR /&gt;$transaction_key, $amount, $fp_sequence, $fp_timestamp)&lt;BR /&gt;?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;h1&amp;gt;Review your order&amp;lt;/h1&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Email : &amp;lt;/label&amp;gt;&amp;lt;label&amp;gt;&amp;lt;?php echo $email ?&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;br /&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Name of the Product : &amp;lt;/label&amp;gt;&amp;lt;label&amp;gt;&amp;lt;?php echo $product_name ?&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;br /&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Product Quantity : &amp;lt;/label&amp;gt;&amp;lt;label&amp;gt;&amp;lt;?php echo $quantity ?&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;br /&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Product Price : &amp;lt;/label&amp;gt;&amp;lt;label&amp;gt;&amp;lt;?php echo $amount ?&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;form method='post' action="&lt;A target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;input type='hidden' name="x_login" value="&amp;lt;?php echo $api_login_id?&amp;gt;" /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name="x_fp_hash" value="&amp;lt;?php echo $fingerprint?&amp;gt;" /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name="x_amount" value="&amp;lt;?php echo $amount?&amp;gt;" /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name="x_fp_timestamp" value="&amp;lt;?php echo $fp_timestamp?&amp;gt;" /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name="x_fp_sequence" value="&amp;lt;?php echo $fp_sequence?&amp;gt;" /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name="x_version" value="3.1" /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name="x_show_form" value="payment_form" /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name="x_test_request" value="false" /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name="x_method" value="cc" /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name="x_receipt_link_method" value="LINK" /&amp;gt;&lt;BR /&gt;&amp;lt;input type="hidden" name="x_receipt_link_text" value="Back to Merchant Page" /&amp;gt;&lt;BR /&gt;&amp;lt;input type="hidden" name="x_receipt_link_url" value="http://localhost/pay/cart.php" /&amp;gt;&lt;BR /&gt;&amp;lt;input type="hidden" name="x_color_background" value="#EBE2DA" /&amp;gt;&lt;BR /&gt;&amp;lt;input type="hidden" name="x_email" value="&amp;lt;?php echo $email ?&amp;gt;" /&amp;gt;&lt;BR /&gt;&amp;lt;input type="hidden" name="x_email_customer" value="TRUE" /&amp;gt;&lt;BR /&gt;&amp;lt;input type="hidden" name="x_header_email_receipt" value="Thanks for using our services, your purchase receipt as follows :" /&amp;gt;&lt;BR /&gt;&amp;lt;input type="hidden" name="x_footer_email_receipt" value="Regards, Team Apollo" /&amp;gt;&lt;BR /&gt;&amp;lt;input type="hidden" name="x_description" value="Payment for the purchase of &amp;lt;?php echo $quantity ?&amp;gt; &amp;lt;?php echo $product_name ?&amp;gt;." /&amp;gt;&lt;BR /&gt;&amp;lt;input type="hidden" name="x_relay_response" value="true" /&amp;gt;&lt;BR /&gt;&amp;lt;input type="hidden" name="x_invoice_num" value="200012354215" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;input type='submit' value="Pay Now!" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/form&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after submit the form the page is redirect to&amp;nbsp;"&lt;A target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;" .....and a payment form display i want to validate that form because i have not design any extra form for payment.Is it possible to get those text box value. for validation.and i also want to save those vale in my data base except the card details is it possible..&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:46:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29272#M15383</guid>
      <dc:creator>mc</dc:creator>
      <dc:date>2012-08-30T13:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fields in the Payment Gateway Response form validations</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29276#M15385</link>
      <description>&lt;P&gt;I would suggest validating your inputs BEFORE you post your information to &lt;A target="_blank" rel="nofollow" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, if there is an error, you just give the user the error and have them resolve the problem before you continue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so maybe, have a conditional branch that checks for errors and at the end of the branch, you can put the "pay now" button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if( first name is not ok)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; echo out an error to user. Have them go back and fix it.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else if (last name is not ok)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; echo out an error to user. Have them go back and fix it.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; pay now button!&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 14:03:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29276#M15385</guid>
      <dc:creator>butsags</dc:creator>
      <dc:date>2012-08-30T14:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fields in the Payment Gateway Response form validations</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29278#M15386</link>
      <description>&lt;P&gt;If you have a database, you can look inot how to talk to your database via PHP. It is absolutely possible but will take some researching.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 14:04:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fields-in-the-Payment-Gateway-Response-form-validations/m-p/29278#M15386</guid>
      <dc:creator>butsags</dc:creator>
      <dc:date>2012-08-30T14:04:41Z</dc:date>
    </item>
  </channel>
</rss>

