Which integration should I start with?
Start with a payment link if you only need to get paid: no code and no server. Use the API plus the SDK when payment is part of your own checkout. Either way, fulfil from the signed payment.settled webhook, never from a browser callback.
Open a hosted checkout with the JavaScript SDK
import { loadInfraIo } from "@lartech/infraio-checkout-js";
// 1. On your server: POST /b2b/v1/checkout-sessions/quick (HMAC-signed with
// your secret key) returns { session_key, checkout_url }.
// 2. In the browser, open the hosted checkout with those two values:
const sdk = await loadInfraIo("pk_live_yourkeyhere");
sdk.checkout({
sessionId: session_key,
checkoutUrl: checkout_url,
mode: "popup", // or "redirect" / "embed"
onSuccess: () => showThanks(), // UX only: fulfil from the webhook
});