API
Payments API
Use POST/api/track-payment for browser-side hosted checkout fallbacks. Send manual amount-based payments from your backend with a website API key.
Stripe Checkout
js
window.revlly.trackPayment({ stripe_checkout_session_id: "cs_test_123",});Lemon Squeezy and Polar fallbacks
js
window.revlly.trackPayment({ provider: "lemonsqueezy", lemonsqueezy_order_id: "123456",});
window.revlly.trackPayment({ provider: "polar", polar_checkout_id: "00000000-0000-4000-8000-000000000000",});Manual server-side payment
timestamp is optional. When supplied, it must be a valid ISO 8601 timestamp.
bash
curl -X POST https://app.revlly.com/api/v1/payments \ -H "Authorization: Bearer YOUR_WEBSITE_API_KEY" \ -H "Content-Type: application/json" \ -d '{"amount":49,"currency":"USD","transaction_id":"txn_123"}'