Skip to Content
Connections · Billing platforms

Recurly

Connect Recurly to Altruon with your domain URL, a private API key and a webhook, so subscriptions, invoices and credit notes stay in sync.

Connect Recurly so that Altruon creates subscriptions there, collects every invoice through the acquirers you route to, and keeps subscriptions, invoices and credit notes in sync.

At a glance
Recurly
What syncs
Subscriptions, invoices (first and recurring) and credit notes
What you need
Your Recurly domain URL and a private API key
Webhook
Manual. You add an endpoint in Recurly, in JSON format, with ten invoice and subscription notifications.
Good to know
EU sites and non-EU sites use different domain URLs. Altruon records each payment as a transaction on the Recurly invoice.

Before you start

  • Altruon backoffice accessYou can sign in to the environment you are connecting. See Sandbox and environments.
  • A Recurly siteYou can open Integrations > API Credentials and Integrations > Webhooks in the Recurly backoffice.
  • An acquirer to collect withAltruon collects Recurly invoices through an acquirer you connect. See Acquirers.

Get your Recurly credentials

  1. Note your Recurly domain URL. Replace {your-subdomain} with the subdomain of your site.

    MerchantDomain URL
    EUhttps://{your-subdomain}.eu.recurly.com
    Non-EUhttps://{your-subdomain}.recurly.com
  2. In the Recurly backoffice, go to Integrations > API Credentials.

  3. Copy your Private API Key. Recurly explains API keys in its documentation.

Connect Recurly in Altruon

  1. Sign in to Altruon and go to Settings > Billing Platforms.
  2. Click + Add Integration and select Recurly.
  3. Enter your Domain URL and your Private API Key.
  4. Click Add Integration.

Once connected, the Recurly integration is marked Active.

The Add Billing Platform dialog in Altruon with Recurly selected, the Domain URL and Private API Key fields and the Add Integration button
Altruon: Add Billing Platform for Recurly

Set up the webhook

Altruon needs a webhook from Recurly to stay in sync with your billing events.

  1. In Altruon, go to Settings > Billing Platforms and click View Integration on Recurly.

  2. Copy the Webhook Endpoint URL.

    The Integration Details dialog for Recurly in Altruon, with status Active, the domain URL, a masked token and the Webhook Endpoint field
    Altruon: Integration Details for Recurly
  3. In the Recurly backoffice, go to Integrations > Webhooks > Manage Endpoints.

  4. Click New Endpoint.

  5. Paste the copied URL into the Endpoint URL field.

  6. Set the Format to JSON.

  7. Under Notifications, select:

    • invoice.created
    • charge_invoice.created
    • credit_invoice.created
    • subscription.created
    • subscription.canceled
    • subscription.paused
    • subscription.pause.canceled
    • subscription.reactivated
    • subscription.resumed
    • subscription.updated
  8. Click Save Changes.

The Endpoint Details form in Recurly, with the endpoint name Altruon webhooks, the Altruon URL in the Endpoint URL field, empty HTTP auth fields and the JSON format selected
Recurly: endpoint details, with the JSON format

Test the connection

  1. Open Settings > Billing Platforms. Recurly is listed as Active.
  2. With an acquirer connected and a routing entry in place, take a test payment in sandbox for a Recurly plan. See Testing.
  3. Check the result in Recurly: the subscription exists, and the transaction is recorded on its first invoice with a reference made of the acquirer, the payment method and the acquirer's transaction ID.

Notes and limits

  • Subscriptions. Altruon creates the subscription in Recurly after the first successful payment or trial setup, with any supported acquirer and payment method.
  • Invoices. First and recurring invoices are synchronized and collected automatically.
  • Credit notes. Credit notes are synchronized, and the refund is made automatically on any supported acquirer and payment method.
  • EU and non-EU domains. An EU site has .eu. in its domain URL. Enter the URL that matches your site.
  • JSON only. Set the webhook format to JSON, not XML.
  • Trials. The trial length comes from your Recurly catalog. See Trials.

Next steps