Stripe
How it works
1. Forward the ID to Stripe
Using Stripe Payment Links
window.addEventListener('load', () => {
const userId = window.optibaseTestedUserId;
if (!userId) return;
// Find all Stripe links and append the client_reference_id
const links = document.querySelectorAll('a[href*="checkout.stripe.com"]');
links.forEach(link => {
const url = new URL(link.href);
url.searchParams.set('client_reference_id', userId);
link.href = url.toString();
});
});Using Stripe API (Server-side)
2. Set up the Webhook
Example Payload
3. Create the Conversion in Optibase
Recommendations
Last updated