Recurly

Connect Recurly so its payments and refunds fold into your CashSDK revenue, and an expired Recurly subscription ends the access it had.

Recurly is enterprise-grade subscription management: flexible billing models, intelligent dunning, and revenue recovery that claws back failed payments before they become churn. Connect it to CashSDK and Recurly's payments fold into one revenue view, so recovered and recurring revenue show up alongside your in-app purchases.

How it works#

1
Connect your Recurly site

Connect Recurly from your app's Marketplace page with a private API key, your site subdomain and a webhook username and password.

2
Map plans to products

Each Recurly plan code matches a CashSDK product.

3
Receive webhooks

Successful payments become revenue, each refund comes back out by its own amount, and an expired subscription ends access.

Connect Recurly#

1
Copy your API key

In Recurly, go to Integrations → API Credentials and copy your Private API key.

2
Add it to CashSDK

In the dashboard, open your app's Marketplace page, choose Recurly and select Connect. Pick Sandbox for a Recurly sandbox site or Production for your live site. Enter the key, your site subdomain (acme for acme.recurly.com), and a username and password for the webhook's HTTP Basic authentication. Credentials are stored encrypted at rest.

3
Register the webhook

Copy the connection's webhook URL from the Connected list and add it in Recurly under Integrations → Webhooks as a JSON endpoint with the same Basic authentication username and password. Send the payment succeeded, payment refunded and subscription expired events.

4
Activate

Back in CashSDK, select Activate on the connection.

Map your catalog#

Payments for plans your app does not sell are skipped, so for each Recurly plan create a product in CashSDK whose identifier is the plan code. To point a plan code at an existing product instead, map it with map_marketplace_catalog (prompt setup). Payments are attributed to the Recurly account code. Link it to your app user with the link_marketplace_user tool on the MCP server.

Test and go live#

1
Test on a sandbox site

With a Sandbox connection to your Recurly sandbox site, create a test subscription and confirm its payment appears under Transactions.

2
Switch to production

Add a Production connection with your production site's key, its own webhook and credentials. Your CashSDK publishable key does not change.

Next steps#