ruby on rails - Recurly Webhook ID -


i trying prevent recurly webhooks being executed multiple times if retried incorrectly (i.e.: when builds go out , servers time out occasionally). see in dashboard webhooks have unique ids, these don't seem accessible in message hash, missing something? i'm using rails it's worth.

<?xml version="1.0" encoding="utf-8"?> <updated_subscription_notification>   <account>     <account_code>1</account_code>     <username nil="true"></username>     <email>verena@example.com</email>     <first_name>verena</first_name>     <last_name>example</last_name>     <company_name nil="true"></company_name>   </account>   <subscription>     <plan>       <plan_code>1dpt</plan_code>       <name>subscription one</name>     </plan>     <uuid>292332928954ca62fa48048be5ac98ec</uuid>     <state>active</state>     <quantity type="integer">1</quantity>     <total_amount_in_cents type="integer">200</total_amount_in_cents>     <activated_at type="datetime">2010-09-23t22:12:39z</activated_at>     <canceled_at nil="true" type="datetime"></canceled_at>     <expires_at nil="true" type="datetime"></expires_at>     <current_period_started_at type="datetime">2010-09-23t22:03:30z</current_period_started_at>     <current_period_ends_at type="datetime">2010-09-24t22:03:30z</current_period_ends_at>     <trial_started_at nil="true" type="datetime">     </trial_started_at>     <trial_ends_at nil="true" type="datetime">     </trial_ends_at>     <collection_method>automatic</collection_method>   </subscription> </updated_subscription_notification> 

a webhook may retired several times, once successful status code received server, recurly stop attempting resend notification. hence, 1 webhook delivered per event. also, webhook ids aren't included in message hash, they're found in ui.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -