Loading…
Everything a separate app needs to accept USDT on Whitechain: a widget, SDKs, links, keys and webhooks.
Drop the checkout into any page. Try its appearance in the Playground first.
pnpm add @pact/checkout-reactimport { Checkout } from '@pact/checkout-react';
export function Buy() {
return (
<Checkout
amount="490.00" // dollars; settled in USDT
apiBaseUrl="/api/pact" // your server route; it holds the secret key
buttonLabel="Pay for Website audit"
onSuccess={payment => console.log('Paid', payment.id)}
/>
);
}apiBaseUrl points at a route on your own server that calls Pact with your secret key, so the key never reaches the browser.
Fulfil from the webhook
order.paid or payment.captured webhook, never from a browser redirect. See the Webhooks tab.