SitePoint Sponsor

User Tag List

Results 1 to 16 of 16
  1. #1
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Athorize.net Automatic Recurring Billing

    Hello there,

    Does anyone have idea and experience on Automatic Recurring Billing system in Authorize.net payment gateway? I need the help on this. I am new in authorize.net. I got and downloaded the code and manual for this but actually i could not come to understand on how to implement this in my site.

    Thank you in advance.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,423
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    I've done a few already. It's not very hard at all. Very simple XML being sent to them and returned to you. What specific questions do you have?

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2007
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I remember my company was trying to do that. We contacted Authorize.net and they said they don't support it, even though if I remember right, it was in their documentation.

    Oh, this was about a year ago.. I didn't see the link for their newly released API for doing it. My bad.

    Check it out: Authorize.Net releases their Recurring Billing API - GET THE CODE
    Last edited by jgstevenson; Mar 26, 2007 at 09:25.

  4. #4
    SitePoint Wizard TheRedDevil's Avatar
    Join Date
    Sep 2004
    Location
    Norway
    Posts
    1,196
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    stymiee:
    Have you setup a subscription solution for authorize.net over api?

    Last time I spoke with them they said they only supported subscription payments if you processed them manually. They also mentioned that they were working on adding support for this to their api system, but they had no due date.


    Do you know if they use the same system for their echeck solution? I noticed there was the same fields used on the echeck in the manual, but no text explaining if it was for their echeck solution.

    rajug:
    Its easy to setup a api for their system, just follow the manual. Though if you take a look on their example keep in mind you want to make it more secure

    The ARB system would work exactly the same as their old one, only that you need to keep track of the subscription number for future use.

    I am not certain if they support api subscriptions yet, if they do please let me know.

    EDIT:
    Read jgstevenson post again, and found their new manual. So please disregard the marked out lines above

    Now Im off to add this into my api solution for authorize.net

  5. #5
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,423
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by TheRedDevil View Post
    stymiee:
    Do you know if they use the same system for their echeck solution? I noticed there was the same fields used on the echeck in the manual, but no text explaining if it was for their echeck solution.
    Based on their manual I am assuming you can use this for echecks as well.

  6. #6
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by TheRedDevil View Post
    rajug:
    Its easy to setup a api for their system, just follow the manual. Though if you take a look on their example keep in mind you want to make it more secure

    The ARB system would work exactly the same as their old one, only that you need to keep track of the subscription number for future use.

    EDIT:
    Read jgstevenson post again, and found their new manual. So please disregard the marked out lines above

    Now Im off to add this into my api solution for authorize.net
    What you mean TheRedDevil? I think it is possible and they have made available to use ARB in payments. But do you know TheRedDevil we do have to make some changes on the merchant account settings manually or not? Will the passed XML work everything needed for recurring?

    Does anyone others have idea or some of code snipet that is used for Authorize.net ARB? Please help. It would be very grateful to you all.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  7. #7
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,423
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    The ARB API does everything you need to set up recurring billing accounts assuming you have set up recurring billing service. If you did not pay for the recurring billing service the ARB API will not work. No changes or settings need to be made in your control panel.

    Authorize.Net has free code snippets on their website? Have you downloaded that yet?

  8. #8
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by stymiee View Post
    The ARB API does everything you need to set up recurring billing accounts assuming you have set up recurring billing service. If you did not pay for the recurring billing service the ARB API will not work.
    Authorize.Net has free code snippets on their website? Have you downloaded that yet?
    Yes i have downloaded the codes. I have also downloaded a class that does the same thing from http://www.ventanazul.com/webzine/ar...ling-php-class
    and trying to make payments.

    No changes or settings need to be made in your control panel.
    I don't mean that my control panel but i am talking about should i make any changes on authorize.net system.
    anyway thanx.
    I will let you know later.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  9. #9
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,423
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by rajug View Post
    Yes i have downloaded the codes. I have also downloaded a class that does the same thing from http://www.ventanazul.com/webzine/ar...ling-php-class
    and trying to make payments.
    I wrote that code.

    Quote Originally Posted by rajug View Post
    I don't mean that my control panel but i am talking about should i make any changes on authorize.net system.
    That's what I meant.

  10. #10
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    stymiee, I am very glad to know that the code what i have downloaded is your code. When i ran the code according to the sample given, i got this response :
    isSuccessful:
    error in payment
    isError: 1
    getSubscriberID:
    getResponse:
    getResultCode:
    getString:
    Outgoing Parameters
    interval_length 1
    interval_unit months
    startDate 2007-03-29
    totalOccurrences 12
    trialOccurrences 0
    trialAmount 0
    amount 1
    refId 15
    cardNumber 5424000000000015
    expirationDate 2009-05
    firstName Joe
    lastName Doe
    address Casa 1872
    city City
    state FL
    zip 33619
    country us
    subscrName The Test Account

    getRawResponse:

    What may be the the error?
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  11. #11
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dear stymiee,

    I just downloaded the Class for ARB directly from your that is of PHP 5 because i have PHP 5.2 in my local system and PHP 5.0 in remote server. But i got the error on the following line in the class.
    PHP Code:
    if(empty(self::LOGIN) || empty(self::TRANSKEY)){
        throw new 
    AuthnetARBException("You have not configured your Authnet login credentials.");

    And the error is:
    Code:
    Parse error: parse error, unexpected ')', expecting '(' in 
    D:\www\test_raju\authorizenet\sample\AuthnetARB-5.class.php on line 20
    What may be the error? Is this the error due to PHP version or something else?
    And i tried to check/do like this to avoid the error:
    PHP Code:
    if(self::LOGIN == "" || self::TRANSKEY == ""){
         throw new 
    AuthnetARBException("You have not configured your Authnet login credentials.");

    Then it gives me the response message:
    User authentication failed due to invalid authentication values.
    So now am i running to the right direction?
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  12. #12
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,423
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Line 20 looks fine which means there is an error elsewhere. Probably a missing semi-colon or something similar.

  13. #13
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What is the meaning of Latest Version of API (Authorize.net)? Does anyone have idea about it?
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  14. #14
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,423
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Considering the API is new there has only been on version so far.

  15. #15
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello stymiee,

    Thanx for the cooperation on this matter. I am really new on this matter. I had worked on PayPal system that is only for normal payment.

    So could you please how this recurring billing system of authorize.net works. I could not come to understand about those three functions:

    ARBCreateSubscriptionRequest
    ARBUpdateSubscriptionRequest
    ARBCancelSusbscriptionRequest

    In my cas,e there are members who should pay monthly around $10.00 to my site. So how can i implement those functions and when? I could not find the exact steps in the manual too about when these are to be used.

    But as i have come to understand is:
    When the user click on the Pay Now button on my site with his/her registration information then it will call ARBCreateSubscriptionRequest.

    Then next time ARBUpdateSubscriptionRequest will be called automatically. (Probably from cron job setting).

    I am not sure about ARBCancelSusbscriptionRequest() when and how it will be called.

    If there are any links which can teach me about those thnigs, please let me know.

    With Regards
    Raju Gautam
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  16. #16
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,423
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    The documentation on their website explains most of that in good detail. I suggest giving it a good read as you can't expect to develop for their API if you don't know how it works. Fortunately it is pretty basic and straight forward.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •