cancel
Showing results for 
Search instead for 
Did you mean: 

ARBCreateSubscription Question

Hi ,

   I am working on ARBreateSubscription. I have one doubt, If i am passing wrong credit card information then also i am getting successful response (eg:  CreditcardNo - abcdef)

 

Please find the Successful Request and Response.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="https://api.authorize.net/soap/v1/">
   <soapenv:Header/>
   <soapenv:Body>
      <v1:ARBCreateSubscription>
         <!--Optional:-->
         <v1:merchantAuthentication>
            <!--Optional:-->
            <v1:name>4baAftc42tQv</v1:name>
            <!--Optional:-->
            <v1:transactionKey>7H4Up3N9e92sL9ab</v1:transactionKey>
         </v1:merchantAuthentication>
         <!--Optional:-->
         <v1:subscription>
            <!--Optional:-->
            <v1:name>kundan</v1:name>
            <!--Optional:-->
            <v1:paymentSchedule>
               <!--Optional:-->
               <v1:interval>
                  <v1:length>2</v1:length>
                  <v1:unit>months</v1:unit>
               </v1:interval>
               <!--Optional:-->
               <v1:startDate>2012-03-12</v1:startDate>
               <!--Optional:-->
               <v1:totalOccurrences>5</v1:totalOccurrences>
               <!--Optional:-->
               <v1:trialOccurrences>3</v1:trialOccurrences>
            </v1:paymentSchedule>
            <!--Optional:-->
            <v1:amount>10000</v1:amount>
            <!--Optional:-->
            <v1:trialAmount>10000.00</v1:trialAmount>
            <!--Optional:-->
            <v1:payment>
               <!--You have a CHOICE of the next 2 items at this level-->
               <!--Optional:-->
               <v1:bankAccount>
                  <!--Optional:-->
                  <v1:accountType>checking</v1:accountType>
                  <!--Optional:-->
                  <v1:nameOnAccount>Test Merchant1</v1:nameOnAccount>
                  <!--Optional:-->
                  <v1:echeckType>PPD</v1:echeckType>
                  <!--Optional:-->
                  <v1:bankName>State Bank of America Bank</v1:bankName>
                  <!--Optional:-->
                  <v1:routingNumber>211970026</v1:routingNumber>
                  <!--Optional:-->
                  <v1:accountNumber>566456646546</v1:accountNumber>
               </v1:bankAccount>
               <!--Optional:-->
               <v1:creditCard>
                  <!--Optional:-->
                  <v1:cardNumber>abcdef</v1:cardNumber>
                  <!--Optional:-->
                  <v1:expirationDate>2012-12</v1:expirationDate>
                  <!--Optional:-->
                  <v1:cardCode>123</v1:cardCode>
               </v1:creditCard>
            </v1:payment>
            <!--Optional:-->
            <v1:order>
               <!--Optional:-->
               <v1:invoiceNumber>12345</v1:invoiceNumber>
               <!--Optional:-->
               <v1:description>Total Mall</v1:description>
            </v1:order>
            <!--Optional:-->
            <v1:customer>
               <!--Optional:-->
               <v1:type>business</v1:type>
               <!--Optional:-->
               <v1:id>34244</v1:id>
               <!--Optional:-->
               <v1:email>kundankrbharti1@gmail.com</v1:email>
               <!--Optional:-->
               <v1:phoneNumber>9807656455</v1:phoneNumber>
               <!--Optional:-->
               <v1:faxNumber>08065434544</v1:faxNumber>
               <!--Optional:-->
               <v1:driversLicense>
                  <!--Optional:-->
                  <v1:state>WA</v1:state>
                  <!--Optional:-->
                  <v1:number>01254567</v1:number>
                  <!--Optional:-->
                  <v1:dateOfBirth>1985-02-02</v1:dateOfBirth>
               </v1:driversLicense>
               <!--Optional:-->
               <v1:taxId>234234568</v1:taxId>
            </v1:customer>
            <!--Optional:-->
            <v1:billTo>
               <!--Optional:-->
               <v1:firstName>Kundan1</v1:firstName>
               <!--Optional:-->
               <v1:lastName>Bharti</v1:lastName>
               <!--Optional:-->
               <v1:company>IBM</v1:company>
               <!--Optional:-->
               <v1:address>Sarjapur</v1:address>
               <!--Optional:-->
               <v1:city>Bangalore</v1:city>
               <!--Optional:-->
               <v1:state>Karnataka</v1:state>
               <!--Optional:-->
               <v1:zip>560101</v1:zip>
               <!--Optional:-->
               <v1:country>India</v1:country>
            </v1:billTo>
            <!--Optional:-->
            <v1:shipTo>
               <!--Optional:-->
               <v1:firstName>Kundan</v1:firstName>
               <!--Optional:-->
               <v1:lastName>Bharti</v1:lastName>
               <!--Optional:-->
               <v1:company>IBM</v1:company>
               <!--Optional:-->
               <v1:address>Sarjapur</v1:address>
               <!--Optional:-->
               <v1:city>Bangalore</v1:city>
               <!--Optional:-->
               <v1:state>Karnataka</v1:state>
               <!--Optional:-->
               <v1:zip>560101</v1:zip>
               <!--Optional:-->
               <v1:country>India</v1:country>
            </v1:shipTo>
         </v1:subscription>
      </v1:ARBCreateSubscription>
   </soapenv:Body>
</soapenv:Envelope>

 

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <ARBCreateSubscriptionResponse xmlns="https://api.authorize.net/soap/v1/">
         <ARBCreateSubscriptionResult>
            <resultCode>Ok</resultCode>
            <messages>
               <MessagesTypeMessage>
                  <code>I00001</code>
                  <text>Successful.</text>
               </MessagesTypeMessage>
            </messages>
            <subscriptionId>1265399</subscriptionId>
         </ARBCreateSubscriptionResult>
      </ARBCreateSubscriptionResponse>
   </soap:Body>
</soap:Envelope>

Can you please solve my query why its happening.

 

Thanks,

Kundan

 

12 REPLIES 12

Subscription intervals can not be changed programmatically. It says so in the documentation. Don't know why you -can- change the interval via your control panel, but there are some things you can do in the control panel that you aren't allowed to do automatically with your software / web site. This must be one of them.

 

The subscription interval information (subscription.paymentSchedule.interval.length and subscription.paymentSchedule.interval.unit) may not be updated.

 

If you need varying intervals, however, you can use CIM instead of ARB and then have an automated process on your server generate applicable charges every morning.

Hi ,

   I am using AIM for payment gateway. I am using AIM for validate Customer payment Information. But facing one problem if i am passing different-different expiry date for same card no. then getting message "This transaction has been approved." How come it is possible. For one card only one expiry date should be there.

 

Thanks,

kundan

There are different validation modes. One just checks if the credit card info is formatted properly, as in the credit card number has the correct number of digits, the correct sum, and the expiration date is after the current date. The other actually charges the credit card a cent to verify the specific information. It's possible you're doing the former instead of the latter. It's also possible you're submitting the transaction in test mode or through a sandbox account, which would not process an actual charge and would probably just return an approval.

 

Please post your code, preferably in a code box (see fourth option from the left in Rich Text mode).