Can someone please explain how subscriptions and webhooks work together?

possibility
Contributor
Contributor

Hi,

 

I'm trying the subscription button. First, how do you link it to a sandbox account? That's not clear. So I tested it with a low price and real user.

 

I didn't get any webhook events. Then I realized when I created the button it was not linked to any of apps, so of course a web hook would not be called. 

 

So I'm really confused now. How programmatically do I know a customer signed up for my service? I have to turn the service on so I need notification somehow. And unlike the Buy Now buttons there's no callback either. How is this supposed to work?

 

Thanks for any insights. 

 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="YAQMDE7BZ5DFY">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

possibility
Contributor
Contributor

Thanks. That explains why it didn't work at least. Does it even say that anywhere? I'm beyond confused as to why it just doesn't work like everything else. The documentation is so bewildering it's hard to understand what's happening at all.

View solution in original post

Login to Me Too
3 REPLIES 3

theartillerysho
Contributor
Contributor

I was told that if you use the buttons you will not be able to get the webhooks. If you want to use webhooks you have to use REST. I am too far into my implementation when I found this out, so I am going to use cron jobs to find out when subscriptions will expire. 

Login to Me Too
Solved

possibility
Contributor
Contributor

Thanks. That explains why it didn't work at least. Does it even say that anywhere? I'm beyond confused as to why it just doesn't work like everything else. The documentation is so bewildering it's hard to understand what's happening at all.

Login to Me Too

theartillerysho
Contributor
Contributor

Not that I am aware of. I have almost given up because their documentation is all over the place. 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.