Hi, I wanted to use the Authorize.net CIM feature for a recurring payment business. The amount and frequency of the payment will be the same every time. The question is with the below code do I just replace the firstname, lastname, credit card info, etc with the field names that I have created in the payment form? Please show some example of how to replace those fields. Does any one have a real life code to share? I read a tutorial in http://www.johnconde.net/blog/tutori...sal-php-class/ but still not able to understand the process.


Note: We do not have any of the customer information until they submit in the payment form.



Thanks.


HTML Code:
< ?xml version="1.0"?>
<createcustomerprofilerequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <merchantauthentication>
    <name>yourloginid</name>
    <transactionkey>yourtransactionkey</transactionkey>
  </merchantauthentication>
  <profile>
    <merchantcustomerid>12345</merchantcustomerid>
    <email>user@example.com</email>
    <paymentprofiles>
      <billto>
        <firstname>John</firstname>
        <lastname>Smith</lastname>
        <address>123 Main Street</address>
        <city>Townsville</city>
        <state>NJ</state>
        <zip>12345</zip>
        <phonenumber>800-555-1234</phonenumber>
      </billto>
      <payment>
        <creditcard>
          <cardnumber>4111111111111111</cardnumber>
          <expirationdate>2016-08</expirationdate>
        </creditcard>
      </payment>
    </paymentprofiles>
    <shiptolist>
      <firstname>John</firstname>
      <lastname>Smith</lastname>
      <address>123 Main Street</address>
      <city>Townsville</city>
      <state>NJ</state>
      <zip>12345</zip>
      <phonenumber>800-555-1234</phonenumber>
    </shiptolist>
  </profile>
  <validationmode>liveMode</validationmode>
</createcustomerprofilerequest>