Reply
Highlighted
Contributor
Posts: 12
Registered: ‎06-08-2017
Accepted Solution

Detecting a successful subscription payment

I'd like to able to detect a successful arb payment so that I can send our user's emails when their payment has gone through. I figured I would be able to use webhooks. However, the webhook documentation doesn't make it clear how to detect a successful arb payment.

 

I couldn't figure out what to expect from the documentation, so I created a webhook endpoint that records what gets sent to it, then I created a subscription and waited to receive a webhook notification. The problem is that when I did get a notification, the authMount value was 0.0. In the sandbox dashboard, I can see the subscription, and it says the amount is $199, and that 1 payment has gone through.

 

So, my question is this: How do I detect a successful subscription payment? Is it normal for a subscription notification to have an authAmount of 0.0, or is this a bug in the sandbox env? Please advise me how to detect a successful subscription payment with webhooks.


Accepted Solutions
Solution
Accepted by topic author skyhijoseph1
‎08-25-2017 04:11 PM
Posts: 2,527
Topics: 56
Kudos: 200
Blog Posts: 67
Registered: ‎12-05-2011

Re: Detecting a successful subscription payment

Hello @skyhijoseph1

 

An ARB transaction would be AuthCapture, so if you add a Webhook it will notify you when a transaction is processed.  Then use the Transaction ID to get details for the transaction.  If it was for a subscription, they transaction details will include a section for Subscription ID.

 

Richard


Build modern websites and mobile applications without increasing PCI burden using Authorize.Net Accept


DPM will be disabled in the sandbox on 7/1/2018. EOL 7/1/2019.

View solution in original post


All Replies
Contributor
Posts: 18
Registered: ‎11-23-2009

Re: Detecting a successful subscription payment

If there is a free trial, then need to perform a zero dollar authorization; receipt is also required to be sent to customer.

Just confirming that is not the case here.

Christine
Payment Gateway and Merchant Services Consultant
Contributor
Posts: 12
Registered: ‎06-08-2017

Re: Detecting a successful subscription payment

There were 0 trial_months for the test subscription. Also, I'm pretty sure that this should be possible with webhooks, since the webhooks documentation explicitly states that a use case for webhooks is detecting successful arb payments.

Contributor
Posts: 12
Registered: ‎06-08-2017

Re: Detecting a successful subscription payment

Come on, there's got to be a way to do this.

Contributor
Posts: 12
Registered: ‎06-08-2017

Re: Detecting a successful subscription payment

I've just noticed that every webhook request that I've gotten in Sandbox has had an authAmount of 0.0. So I guess webhooks don't work yet.

Solution
Accepted by topic author skyhijoseph1
‎08-25-2017 04:11 PM
Posts: 2,527
Topics: 56
Kudos: 200
Blog Posts: 67
Registered: ‎12-05-2011

Re: Detecting a successful subscription payment

Hello @skyhijoseph1

 

An ARB transaction would be AuthCapture, so if you add a Webhook it will notify you when a transaction is processed.  Then use the Transaction ID to get details for the transaction.  If it was for a subscription, they transaction details will include a section for Subscription ID.

 

Richard


Build modern websites and mobile applications without increasing PCI burden using Authorize.Net Accept


DPM will be disabled in the sandbox on 7/1/2018. EOL 7/1/2019.
Contributor
Posts: 12
Registered: ‎06-08-2017

Re: Detecting a successful subscription payment

Oh, I see, thanks.

 

Is there a way do distinguish an arb AuthCapture transaction from another AuthCapture transaction? Also, is it normal for every webhook request to have an authAmount of 0.0? If so, then what's the point?

Contributor
Posts: 12
Registered: ‎06-08-2017

Re: Detecting a successful subscription payment

Nvm, you already answered my question, the transaction response have a subscription id

All Star
Posts: 699
Registered: ‎11-03-2016

Re: Detecting a successful subscription payment

Hi @skyhijoseph1,

 

Just FYI, the amount = 0.00 is a known problem that's currently being worked on. Unfortunately I can't provide any timeline on a fix.

Contributor
Posts: 24
Registered: ‎08-28-2017

Re: Detecting a successful subscription payment

Hey @Aaron - is this an issue only in the sandbox or is amount=0.00 in production too?