<?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: Please help, payment form not billing correctly in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-payment-form-not-billing-correctly/m-p/17880#M9962</link>
    <description>&lt;P&gt;The trial amount just changes the amount charged during a specified trial period. It doesn't make ARB charge the first payment immediately. If you want an immediate charge, you'll have to use AIM for that. Personally, I find it easier to integrate CIM with an automated routine to process charges, rather than have to mess with AIM + ARB + callback page.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2011 20:49:36 GMT</pubDate>
    <dc:creator>TJPride</dc:creator>
    <dc:date>2011-10-10T20:49:36Z</dc:date>
    <item>
      <title>Please help, payment form not billing correctly</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-payment-form-not-billing-correctly/m-p/17878#M9961</link>
      <description>&lt;P&gt;Supposed to charge $49 instant then $25/week for 8 weeks.&amp;nbsp; The recurring is working correctly but not charging the initial $49.&amp;nbsp; Can anyone offer me advice on how to correct this?&amp;nbsp; Pretty please?&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://uniqueunderwriters.com/anetcode.txt##"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/A&gt; &amp;lt;ARBCreateSubscriptionRequest xmlns="&lt;STRONG&gt;AnetApi/xml/v1/schema/AnetApiSchema.xsd&lt;/STRONG&gt;"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://uniqueunderwriters.com/anetcode.txt##"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/A&gt; &amp;lt;merchantAuthentication&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;name&amp;gt;3W3Jc3Efy2su&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;transactionKey&amp;gt;7vz3kX8943ATw7rZ&amp;lt;/transactionKey&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/merchantAuthentication&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://uniqueunderwriters.com/anetcode.txt##"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/A&gt; &amp;lt;subscription&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;name&amp;gt;2012 Unique Underwriters Conference of Champions&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://uniqueunderwriters.com/anetcode.txt##"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/A&gt; &amp;lt;paymentSchedule&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://uniqueunderwriters.com/anetcode.txt##"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/A&gt; &amp;lt;interval&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;length&amp;gt;7&amp;lt;/length&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;unit&amp;gt;days&amp;lt;/unit&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/interval&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;startDate&amp;gt;2011-10-04&amp;lt;/startDate&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;totalOccurrences&amp;gt;8&amp;lt;/totalOccurrences&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;trialOccurrences&amp;gt;1&amp;lt;/trialOccurrences&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/paymentSchedule&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;amount&amp;gt;25&amp;lt;/amount&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;trialAmount&amp;gt;49&amp;lt;/trialAmount&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://uniqueunderwriters.com/anetcode.txt##"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/A&gt; &amp;lt;payment&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://uniqueunderwriters.com/anetcode.txt##"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/A&gt; &amp;lt;creditCard&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;cardNumber&amp;gt;5555555555555555&amp;lt;/cardNumber&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;expirationDate&amp;gt;2013-3&amp;lt;/expirationDate&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/creditCard&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/payment&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://uniqueunderwriters.com/anetcode.txt##"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/A&gt; &amp;lt;order&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;description&amp;gt;Capture Page Subscription&amp;lt;/description&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/order&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://uniqueunderwriters.com/anetcode.txt##"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/A&gt; &amp;lt;customer&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;email&amp;gt;test1@yahoo.com&amp;lt;/email&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;phoneNumber&amp;gt;555-555-5555&amp;lt;/phoneNumber&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/customer&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://uniqueunderwriters.com/anetcode.txt##"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/A&gt; &amp;lt;billTo&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;firstName&amp;gt;Test&amp;lt;/firstName&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;lastName&amp;gt;test&amp;lt;/lastName&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;address&amp;gt;111 Main St&amp;lt;/address&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;city&amp;gt;City&amp;lt;/city&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;state&amp;gt;FL&amp;lt;/state&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;zip&amp;gt;55555&amp;lt;/zip&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/billTo&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/subscription&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/ARBCreateSubscriptionRequest&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Judy&lt;BR /&gt;&lt;A target="_blank" href="mailto:judysver@yahoo.com"&gt;judysver@yahoo.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2011 18:22:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-payment-form-not-billing-correctly/m-p/17878#M9961</guid>
      <dc:creator>judy</dc:creator>
      <dc:date>2011-10-10T18:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Please help, payment form not billing correctly</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-payment-form-not-billing-correctly/m-p/17880#M9962</link>
      <description>&lt;P&gt;The trial amount just changes the amount charged during a specified trial period. It doesn't make ARB charge the first payment immediately. If you want an immediate charge, you'll have to use AIM for that. Personally, I find it easier to integrate CIM with an automated routine to process charges, rather than have to mess with AIM + ARB + callback page.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2011 20:49:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-payment-form-not-billing-correctly/m-p/17880#M9962</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-10-10T20:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Please help, payment form not billing correctly</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-payment-form-not-billing-correctly/m-p/17884#M9963</link>
      <description>&lt;P&gt;Do you have an example of how I can mofify it? I appreciate your help.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2011 00:00:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-payment-form-not-billing-correctly/m-p/17884#M9963</guid>
      <dc:creator>judy</dc:creator>
      <dc:date>2011-10-11T00:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Please help, payment form not billing correctly</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-payment-form-not-billing-correctly/m-p/17896#M9969</link>
      <description>&lt;P&gt;Not if you're using XML. I use the PHP API that layers on top, it's much simpler.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2011 15:30:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-payment-form-not-billing-correctly/m-p/17896#M9969</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-10-11T15:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Please help, payment form not billing correctly</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-payment-form-not-billing-correctly/m-p/17902#M9972</link>
      <description>&lt;P&gt;At this point I will try anything.&amp;nbsp;I am ok if it it one or other but this form needs to do both instant and recurring with different amounts.&amp;nbsp; Can you show me an example of how you are doing. I am pretty good at PHP so I should be able to follow.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2011 19:31:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-payment-form-not-billing-correctly/m-p/17902#M9972</guid>
      <dc:creator>judy</dc:creator>
      <dc:date>2011-10-11T19:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Please help, payment form not billing correctly</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-payment-form-not-billing-correctly/m-p/17910#M9976</link>
      <description>&lt;P&gt;AIM example, may need slight modifications for your needs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$authorize = new AuthorizeNetAIM(
    $GLOBALS['_authorize_id'], $GLOBALS['_authorize_key']);
$authorize-&amp;gt;setSandbox(false);

$fields = array(
    'first_name' =&amp;gt; $_POST['first'],
    'last_name' =&amp;gt; $_POST['last'],
    'company' =&amp;gt; $_POST['company'],
    'address' =&amp;gt; $_POST['address'],
    'city' =&amp;gt; $_POST['city'],
    'state' =&amp;gt; $_POST['state'],
    'zip' =&amp;gt; $_POST['zip'],
    'country' =&amp;gt; 'US',

    'phone' =&amp;gt; $_POST['phone'],
    'email' =&amp;gt; $_POST['email'],

    'customer_ip' =&amp;gt; $_SERVER['REMOTE_ADDR'],

    'description' =&amp;gt; "{$_POST['type']} initial fee for " . count($_POST['zips']) . " zip codes with {$population} total estimated population",
    'amount' =&amp;gt; $_POST['initial_payment'],

    'card_num' =&amp;gt; $_POST['card_number'],
    'exp_date' =&amp;gt; sprintf('%02d%02d', $_POST['card_exp_month'], ($_POST['card_exp_year'] % 1000)),
    'card_code' =&amp;gt; $_POST['card_ccv']
);
$authorize-&amp;gt;setFields($fields);    
$authorize-&amp;gt;setCustomField('payment_type', 'SINGLE');

$result = $authorize-&amp;gt;authorizeAndCapture();

if ($result-&amp;gt;error || $result-&amp;gt;{'response_code'} != 1)
    $errors[] = "Initial charge declined - {$result-&amp;gt;response_reason_text}";&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ARB example, also may require some modification:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$authorize = new AuthorizeNetARB(
    $GLOBALS['_authorize_id'], $GLOBALS['_authorize_key']);
$authorize-&amp;gt;setSandbox(false);

$subscription = new AuthorizeNet_Subscription;

$subscription-&amp;gt;customerId = $idn;

$subscription-&amp;gt;billToFirstName = $_POST['first'];
$subscription-&amp;gt;billToLastName = $_POST['last'];
$subscription-&amp;gt;billToCompany = $_POST['company'];
$subscription-&amp;gt;billToAddress = $_POST['address'];
$subscription-&amp;gt;billToCity = $_POST['city'];
$subscription-&amp;gt;billToState = $_POST['state'];
$subscription-&amp;gt;billToZip = $_POST['zip'];
$subscription-&amp;gt;billToCountry = 'US';

$subscription-&amp;gt;customerPhoneNumber = $_POST['phone'];
$subscription-&amp;gt;customerEmail = $_POST['email'];

$subscription-&amp;gt;name = "{$_POST['type']} Subscription";
$subscription-&amp;gt;orderDescription = 'For ' . count($_POST['zips']) . " zip codes with {$population} total estimated population";
$subscription-&amp;gt;amount = $_POST['price'];

$subscription-&amp;gt;startDate = $_POST['payment_due'];
$subscription-&amp;gt;intervalLength = '1';
$subscription-&amp;gt;intervalUnit = 'months';
$subscription-&amp;gt;totalOccurrences = '9999';

$subscription-&amp;gt;creditCardCardNumber = $_POST['card_number'];
$subscription-&amp;gt;creditCardExpirationDate = sprintf('%04d-%02d', $_POST['card_exp_year'], $_POST['card_exp_month']);
$subscription-&amp;gt;creditCardCardCode = $_POST['card_ccv'];

$result = $authorize-&amp;gt;createSubscription($subscription);

// We want to delay this error until later
if ($result-&amp;gt;xml-&amp;gt;messages-&amp;gt;resultCode != 'Ok')
    $errors[] = "Recurring billing could not be initiated - {$result-&amp;gt;xml-&amp;gt;messages-&amp;gt;message-&amp;gt;text}";

else {
    // Do some success thing
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2011 03:46:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-payment-form-not-billing-correctly/m-p/17910#M9976</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-10-12T03:46:05Z</dc:date>
    </item>
  </channel>
</rss>

