Skip to main content
Cursor can implement Cello user referrals end-to-end if you give it the right guide and force it to create a plan before coding.

Prerequisites

Before integrating Cello, ensure the following prerequisites are met:
  • User signup and authentication is functional
  • Stripe subscription flow is functional
  • You have a Cello account and API keys at hand.
Make sure to use Cello Sandbox environment when developing and testing

Cello user referrals integration (Coding-agent flow)

For a step-by-step technical implementation (source of truth + acceptance criteria), follow the detailed guide:The guide uses React + Node.js as an example, but it can be any other combination — the steps stay the same.
1

Step 1

Prep your project
  • Signup and authentication flow is functional
  • Stripe subscription flow is functional
  • Cello API keys are handy
2

Step 2

Add Cello Webhook Endpoint to Stripe
  • Get your webhook URL from Cello Portal
  • Add a Webhook endpoint in Stripe (Log into your Stripe Dashboard -> Go to Developer Mode -> Add a Webhook endpoint and enter endpoint URL -> Select the events to send -> Click “Add endpoint”)
  • Secure the Webhook with “Signing secret”
Events to send:
  • charge.refunded, charge.succeeded, charge.updated
  • customer.created, customer.deleted, customer.updated
  • customer.subscription.created, customer.subscription.deleted, customer.subscription.updated
  • invoice.paid
See Stripe Webhook Integration for more details.
3

Step 3

Prompt Cursor to add User Referrals to your appSwitch Cursor to Plan mode, then paste this prompt (includes the detailed guide):
I now want to add user referrals. I chose platform Cello for this.

I added a Cello integration guide according to which you should do the implementation. parsed the documentation more carefully from the start rather than assuming standard patterns would work. create a thorough implementation plan based on guidance, patterns and AC from the provided guide. Don't skip any content, it is all relevant

Guide: https://docs.cello.so/resources/react-nodejs-integration
Cursor asks you guiding questions and creates an implementation plan based on your answers.
4

Step 4

Confirm executing the planReview the plan carefully. If it looks correct, tell Cursor to proceed and start implementing it.
5

Step 5

Publish & TestRun your app and test the end-to-end flow. If everything was implemented correctly, you should see events coming in to Cello Dashboard.