Reply
Member
Posts: 1
Registered: ‎03-22-2010

ARB with update pricing from my website

Hi, I Am planning to implement auto recurring billing(ARB) to my website clients. I am able to do the auto mated recurring account but I am struggling with updating the subscription from my web site. i.e If I want to update the recurring amount from 10$ to 20$ and vise versa. I search over the net but every where I found that client (my website user) need to do that manually from his account. I want to have a automated process with a buttons available on my website. Is it possible or not? Thanks in advance, Viswa Jwalith
Highlighted
Posts: 1,476
Topics: 33
Kudos: 34
Solutions: 126
Registered: ‎09-14-2009

Re: ARB with update pricing from my website

Once an ARB subscription has started you cannot change the amount charged. If you wish to fluctuate the amount you can:

 

1) Cancel the subscription and create a new one with the proper amount

 

2) You'll need to create your own subscription system that manages the "when" of the subscription as well as the "how much". You then can use Authorize.Net Customer Information Manager (CIM) API to store customer billing information, including their credit card information, and then have a cron job that periodically polls the database and, when a user meets the criteria for a payment, calculate the proper amount and then use the CIM API to process their credit card.


-------------------------------------------------------------------------------------------------------------------------------------------
John Conde :: Certified Authorize.Net Developer (Brainyminds) :: Official Authorize.Net Blogger

NEW! Handling Authorize.Net's Webhooks with PHP

Integrate Every Authorize.Net JSON API with One PHP Class (Sample code included)

Tutorials for integrating Authorize.Net with PHP: AIM, ARB, CIM, Silent Post
All About Authorize.Net's Silent Post
Member
Posts: 1
Registered: ‎01-31-2011

Re: ARB with update pricing from my website

 stymiee,

 

Its been almost a year since your last reply on this thread. Has their been any change to ARBUpdateSubscriptionRequest? Looking at the docs (http://www.authorize.net/support/ARB_guide.pdf), updating the subscription amount is NOT listed as something that CAN NOT be done. Are the docs wrong? Or is not being able to update the subscription amount just undocumented?

 

Thanks,

 

-Kavih

All Star
Posts: 1,072
Registered: ‎08-17-2009

Re: ARB with update pricing from my website

Hey Kavih,

 

You should be able to update the amount no problem. Give it a whirl!

 

Thanks,

 

Michelle

Developer Community Manager

Member
Posts: 2
Registered: ‎08-23-2011

Re: ARB with update pricing from my website

Are you able to give a little more information about how to do it?  The current documentation doesnt seem to list anything about updating price.  Are you able to tell me what to input and where?

Member
Posts: 2
Registered: ‎08-23-2011

Re: ARB with update pricing from my website

Ok, I think I got it, I should use the same format from creating an account?

Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: ARB with update pricing from my website

Something like this:

 

        $authorize = new AuthorizeNetARB(
            $authorize_id, $authorize_key);
        $authorize->setSandbox(false);
    
        $subscription = new AuthorizeNet_Subscription;
        $subscription->amount = $new_price;
    
        $result = $authorize->updateSubscription($subscription_id, $subscription);
    
        if ($result->xml->messages->resultCode != 'Ok')
            $errors[] = "Recurring billing could not be updated - {$result->xml->messages->message->text}";