<?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: Gift Certificate Form? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27974#M14762</link>
    <description>&lt;P&gt;RaynorC1emen7,&lt;/P&gt;&lt;P&gt;I have a PHP script that is &lt;EM&gt;mostly&lt;/EM&gt; working.&amp;nbsp; It posts transactions successfully to Authorize.net.&amp;nbsp; The script sends out an e-mail to the restaurant owner with all the transaction details, including the MDFs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is, the MDFs are not showing up in the e-mail that comes from Authorize.net.&amp;nbsp; How is this done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I share my code here and ask people to look at it and tell me what lines I need to include so the MDFs are included in the e-mail receipt from Authorize.net?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matthew&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jul 2012 20:19:21 GMT</pubDate>
    <dc:creator>MatthewSchenker</dc:creator>
    <dc:date>2012-07-16T20:19:21Z</dc:date>
    <item>
      <title>Gift Certificate Form?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27920#M14737</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I'm trying to implement a simple gift certificate system for a restaurant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a form that gathers buyer information, a gift message (if any), and of course the payment information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've searched and read the documentation, but I cannot find examples or tutorials showing how to hook form submissions into the Authorize.net system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, I'm testing out a PHP script from CodeCanyon &lt;A target="_blank" href="http://codecanyon.net/item/gift-certificates/1203487)."&gt;http://codecanyon.net/item/gift-certificates/1203487).&lt;/A&gt;&amp;nbsp; But I'm wondering whether it might be simpler to just build the form myself?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone point me to a complete example of hooking form submissions to the Authorize.net system?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2012 12:20:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27920#M14737</guid>
      <dc:creator>MatthewSchenker</dc:creator>
      <dc:date>2012-07-13T12:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Gift Certificate Form?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27926#M14740</link>
      <description>&lt;P&gt;stymiee have a blog on the subject&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Start from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://community.developer.authorize.net/t5/The-Authorize-Net-Developer-Blog/Handling-Online-Payments-Part-1-Basic-Information-and-Our-Form/ba-p/9184"&gt;http://community.developer.authorize.net/t5/The-Authorize-Net-Developer-Blog/Handling-Online-Payments-Part-1-Basic-Information-and-Our-Form/ba-p/9184&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2012 16:26:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27926#M14740</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-07-13T16:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Gift Certificate Form?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27964#M14758</link>
      <description>&lt;P&gt;RaynorC1emen7,&lt;/P&gt;&lt;P&gt;Thanks for the tip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've built forms and e-ecommerce systems quickly and intuitively using Stripe and payPal.&amp;nbsp; But wow -- Authorize.net's system is really overly complicated and convoluted!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 15:10:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27964#M14758</guid>
      <dc:creator>MatthewSchenker</dc:creator>
      <dc:date>2012-07-16T15:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Gift Certificate Form?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27968#M14759</link>
      <description>&lt;P&gt;Did you look at the &lt;A target="_self" href="http://developer.authorize.net/downloads/samplecode/"&gt;sample code&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 16:27:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27968#M14759</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-07-16T16:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Gift Certificate Form?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27974#M14762</link>
      <description>&lt;P&gt;RaynorC1emen7,&lt;/P&gt;&lt;P&gt;I have a PHP script that is &lt;EM&gt;mostly&lt;/EM&gt; working.&amp;nbsp; It posts transactions successfully to Authorize.net.&amp;nbsp; The script sends out an e-mail to the restaurant owner with all the transaction details, including the MDFs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is, the MDFs are not showing up in the e-mail that comes from Authorize.net.&amp;nbsp; How is this done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I share my code here and ask people to look at it and tell me what lines I need to include so the MDFs are included in the e-mail receipt from Authorize.net?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matthew&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 20:19:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27974#M14762</guid>
      <dc:creator>MatthewSchenker</dc:creator>
      <dc:date>2012-07-16T20:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Gift Certificate Form?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27980#M14764</link>
      <description>&lt;P&gt;Go ahead and post your code here. Some of the php developer here can probably help you. Just make sure to remove any confidential&amp;nbsp;info/data.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 23:03:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27980#M14764</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-07-16T23:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Gift Certificate Form?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27986#M14767</link>
      <description>&lt;P&gt;Greetings RaynorC1emen7,&lt;/P&gt;&lt;P&gt;Thanks for the offer to help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the complete code for the checkout.php file, which has the main references to the fields that get sent to Authorize.net.&amp;nbsp; I may have to send another file, but let's start with this one!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Merchant-Defined Fields are established in another file that is filled in during the process.&amp;nbsp; They are working, since data from those fields is making it into the confirmation e-mail sent to the merchant from the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is, where in this code would I need to place the references to the merchant-defined fields in order for it to show up in the Authorize.net e-mail receipt?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried including them with the following formats:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;$a-&amp;gt;add_field('MDF_field_name', $loader-&amp;gt;address['billing']['MDF_field_name']);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;$a-&amp;gt;add_field('MDF_field_name';&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But neither seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, thank you ahead of time for helping.&amp;nbsp; Here's the complete checkout.php file I'm using...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;lt;?php&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;require 'config.php';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; session_start();&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;error_reporting(E_ALL);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ini_set('display_errors','On');&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; include('elements/loader.php');&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $loader=new GiftCardLoader(true,true,true);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if($loader-&amp;gt;checkStep(true)){ echo '&amp;lt;meta http-equiv="refresh" content="0;url=cart.php"&amp;gt; '; }&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$amount=0;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;foreach($loader-&amp;gt;cart as $item){&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$amount+=($item['quantity']*$item['amount']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$method=$loader-&amp;gt;getShippingMethod();&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$amount+=$method['price'];&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a = new PDAuthorizeNet;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Set all of the authnet info */&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_login', $x_login);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_tran_key', $x_transkey);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_version', '3.1');&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_type', 'AUTH_CAPTURE');&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_test_request', 'FALSE'); &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_relay_response', 'FALSE');&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_delim_data', 'TRUE');&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_delim_char', '|');&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_encap_char', '');&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Billing Information */&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_first_name', $loader-&amp;gt;address['billing']['x_first_name']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_last_name', $loader-&amp;gt;address['billing']['x_last_name']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_address', $loader-&amp;gt;address['billing']['x_address']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_city', $loader-&amp;gt;address['billing']['x_city']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_state', $loader-&amp;gt;address['billing']['x_state']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_zip', $loader-&amp;gt;address['billing']['x_zip']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_country', $loader-&amp;gt;address['billing']['x_country']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_email', $loader-&amp;gt;address['billing']['x_email']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Shipping Information */&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_ship_to_first_name', $loader-&amp;gt;address['shipping']['x_first_name']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_ship_to_last_name', $loader-&amp;gt;address['shipping']['x_last_name']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_ship_to_address', $loader-&amp;gt;address['shipping']['x_address']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_ship_to_city', $loader-&amp;gt;address['shipping']['x_city']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_ship_to_state', $loader-&amp;gt;address['shipping']['x_state']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_ship_to_zip', $loader-&amp;gt;address['shipping']['x_zip']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_ship_to_country', $loader-&amp;gt;address['shipping']['x_country']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_ship_to_email', $loader-&amp;gt;address['shipping']['x_email']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Credit Card Information */&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_method', 'CC');&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_card_num', $loader-&amp;gt;sale['x_card_num']); &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_amount', $amount);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_exp_date', $loader-&amp;gt;sale['x_exp_date']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$a-&amp;gt;add_field('x_card_code', $loader-&amp;gt;sale['x_card_code']);&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$billing=$loader-&amp;gt;address['billing'];&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$shipping=$loader-&amp;gt;address['shipping'];&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body ="&amp;lt;h3&amp;gt;Order Details&amp;lt;/h3&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.="&amp;lt;table width='100%' cellpadding='5' border='1'&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.="&amp;lt;tr&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.="&amp;lt;td width='50%'&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.="&amp;lt;h3&amp;gt;Billing&amp;lt;/h3&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.=$billing['x_first_name']." ".$billing['x_last_name']."&amp;lt;br /&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.=$billing['x_email']."&amp;lt;br /&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.=$billing['x_address']."&amp;lt;br /&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if($billing['x_address2']!==""){&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.=$billing['x_address2']."&amp;lt;br /&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.=$billing['x_city'].", ".$billing['x_state']." ".$billing['x_zip']." ".$billing['x_country'];&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.="&amp;lt;/td&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.="&amp;lt;td width='50%'&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.="&amp;lt;h3&amp;gt;Shipping&amp;lt;/h3&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.=$shipping['x_first_name']." ".$shipping['x_last_name']."&amp;lt;br /&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.=$shipping['x_email']."&amp;lt;br /&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.=$shipping['x_address']."&amp;lt;br /&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if($shipping['x_address2']!==""){&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.=$shipping['x_address2']."&amp;lt;br /&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.=$shipping['x_city'].", ".$shipping['x_state']." ".$shipping['x_zip']." ".$shipping['x_country'];&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.="&amp;lt;/td&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.="&amp;lt;/tr&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.="&amp;lt;/table&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.="&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;";&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;table width="100%" cellpadding="5" border="1"&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;thead&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;th&amp;gt;Product&amp;lt;/th&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;th&amp;gt;Quantity&amp;lt;/th&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;th&amp;gt;Price&amp;lt;/th&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;th&amp;gt;Subtotal&amp;lt;/th&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;/thead&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;foreach($loader-&amp;gt;cart as $id=&amp;gt;$item){&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;tr&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;td&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='Gift Card&amp;lt;br /&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='Amount: &amp;lt;strong&amp;gt;$'.$item['amount'].'&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='Is this a gift?: &amp;lt;strong&amp;gt;'.($item['gift']?"Yes":"No").'&amp;lt;/strong&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if($item['gift']){&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;br /&amp;gt;To: &amp;lt;strong&amp;gt;'.$item['gift-options']['to'].'&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='From: &amp;lt;strong&amp;gt;'.$item['gift-options']['from'].'&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='Ship to address: &amp;lt;strong&amp;gt;'.$item['gift-options']['address'].'&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='Personal Message: &amp;lt;strong&amp;gt;'.$item['gift-options']['message'].'&amp;lt;/strong&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;/td&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;td&amp;gt;'.$item['quantity'].'&amp;lt;/td&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;td&amp;gt;$'.number_format($item['amount'],2).'&amp;lt;/td&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;td&amp;gt;$'.number_format($item['amount']*$item['quantity'],2).'&amp;lt;/td&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;/tr&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'.$method['name'].'&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;$'.number_format($method['price'],2).'&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Grand Total&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;$'.number_format($amount,2).'&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body.='&amp;lt;/table&amp;gt;';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Respond and stuff */&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;switch ($a-&amp;gt;process()) {&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; case 1:&amp;nbsp; // Successs&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;header('Location: return.php?success');&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;mail($store_owner,"Gift Card Purchase",$body,"Content-Type: text/html; charset=ISO-8859-1\r\n");&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;break;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; case 2:&amp;nbsp; // Declined&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; header('Location: return.php?decline');&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; break;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; case 3:&amp;nbsp; // Error &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; header('Location: return.php?error');&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; break;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;?&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2012 02:26:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27986#M14767</guid>
      <dc:creator>MatthewSchenker</dc:creator>
      <dc:date>2012-07-17T02:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Gift Certificate Form?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27992#M14770</link>
      <description>&lt;P&gt;I am having the exact same problem!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why won't anyone respond to the code that Matthew posted?&lt;/P&gt;&lt;P&gt;It's been my experience with Authorize.net that they let any post begging for help like this one - just die.&lt;/P&gt;&lt;P&gt;There are lots of us out there that would LOVE to get a reply to this posted code, so we can all fix our similar problems!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Come on! No one? Really? Not one PHP Developer in this entire forum?&lt;/P&gt;&lt;P&gt;Matthew gave you all the info you could need to help him - and me - and others.&lt;/P&gt;&lt;P&gt;Please someone help!!!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2012 14:48:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27992#M14770</guid>
      <dc:creator>marleyman</dc:creator>
      <dc:date>2012-07-17T14:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Gift Certificate Form?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27994#M14771</link>
      <description>&lt;P&gt;This answer the merchant defined in email question.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://community.developer.authorize.net/t5/Integration-and-Testing/Merchant-Defined-Fields-in-Emails/m-p/2022/highlight/true#M1792"&gt;http://community.developer.authorize.net/t5/Integration-and-Testing/Merchant-Defined-Fields-in-Emails/m-p/2022/highlight/true#M1792&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option are either put it in the x_header_email_receipt or x_footer_email_receipt or send the email yourselves.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2012 15:09:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Gift-Certificate-Form/m-p/27994#M14771</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-07-17T15:09:15Z</dc:date>
    </item>
  </channel>
</rss>

