Skip to content

Instantly share code, notes, and snippets.

@arush arush/gist:4216462
Created Dec 5, 2012

Embed
What would you like to do?
Recurly Push notifications
// NEW ACCOUNT NOTIFICATION
<?xml version="1.0" encoding="UTF-8"?>
<new_account_notification>
<account>
<account_code>test@getbrandid.com</account_code>
<username nil="true"></username>
<email>test@getbrandid.com</email>
<first_name>a</first_name>
<last_name>a</last_name>
<company_name></company_name>
</account>
</new_account_notification>
// SUCCESSFUL PAYMENT NOTIFICATION
<?xml version="1.0" encoding="UTF-8"?>
<successful_payment_notification>
<account>
<account_code>test@getbrandid.com</account_code>
<username nil="true"></username>
<email>test@getbrandid.com</email>
<first_name>a</first_name>
<last_name>a</last_name>
<company_name></company_name>
</account>
<transaction>
<id>1cda65771519bcd11eb53f4f8f9227d1</id>
<invoice_id>1cda6576f5dcaf972a21b147c18f0869</invoice_id>
<invoice_number type="integer">1227</invoice_number>
<subscription_id>1cda65707f173f0cf7d95c4b9083137f</subscription_id>
<action>purchase</action>
<date type="datetime">2012-12-05T15:06:07Z</date>
<amount_in_cents type="integer">3295</amount_in_cents>
<status>success</status>
<message>Successful test transaction</message>
<reference>1177369</reference>
<source>subscription</source>
<cvv_result code="M">Match</cvv_result>
<avs_result code="D">Street address and postal code match.</avs_result>
<avs_result_street nil="true"></avs_result_street>
<avs_result_postal nil="true"></avs_result_postal>
<test type="boolean">true</test>
<voidable type="boolean">true</voidable>
<refundable type="boolean">true</refundable>
</transaction>
</successful_payment_notification>
// BILLING INFO UPDATED NOTIFICATION
<?xml version="1.0" encoding="UTF-8"?>
<billing_info_updated_notification>
<account>
<account_code>test@getbrandid.com</account_code>
<username nil="true"></username>
<email>test@getbrandid.com</email>
<first_name>a</first_name>
<last_name>a</last_name>
<company_name></company_name>
</account>
</billing_info_updated_notification>
// NEW SUBSCRIPTION NOTIFICATION
<?xml version="1.0" encoding="UTF-8"?>
<new_subscription_notification>
<account>
<account_code>test@getbrandid.com</account_code>
<username nil="true"></username>
<email>test@getbrandid.com</email>
<first_name>a</first_name>
<last_name>a</last_name>
<company_name></company_name>
</account>
<subscription>
<plan>
<plan_code>male-plan-trial</plan_code>
<name>BRANDiD Test Drive</name>
</plan>
<uuid>1cda65707f173f0cf7d95c4b9083137f</uuid>
<state>active</state>
<quantity type="integer">1</quantity>
<total_amount_in_cents type="integer">3295</total_amount_in_cents>
<activated_at type="datetime">2012-12-05T15:06:06Z</activated_at>
<canceled_at type="datetime"></canceled_at>
<expires_at type="datetime"></expires_at>
<current_period_started_at type="datetime">2012-12-05T15:06:06Z</current_period_started_at>
<current_period_ends_at type="datetime">2013-01-05T15:06:06Z</current_period_ends_at>
<trial_started_at type="datetime"></trial_started_at>
<trial_ends_at type="datetime"></trial_ends_at>
</subscription>
</new_subscription_notification>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.