chargebee / chargebee-samples

The chargebee sample apps
MIT License
23 stars 77 forks source link

Need sample for webhook with re-requesting event for security #3

Closed BitPopCoin closed 8 years ago

BitPopCoin commented 8 years ago

PHP

saravana-cb commented 8 years ago

Could you explain little more about your query?

BitPopCoin commented 8 years ago

https://github.com/chargebee/chargebee-samples/blob/master/php/php_src/WebhookHandler.php

with

https://apidocs.chargebee.com/docs/api/events#retrieve_an_event

saravana-cb commented 8 years ago

Hi, Assuming that you are looking to validate the webhook content received, you could use https for your webhook URL. Alternatively, you can call the Retrieve Event API once you receive the webhook, however this might cause delay, resulting in a timeout error in Chargebee if we do not receive the webhook response.