Create a paid experience
In My launches → dApps → Experiences, choose an ID such asmember-pass, a name and a price in your token. Optionally attach a holder requirement. The OneSwap checkout uses the registered price and pays the verified creator wallet. An edit changes the terms offered to future buyers. Existing invoices keep their original terms.
Start an order
On an authenticated, same-origin purchase request, use the member’s server-side session. Checkauth.me().capabilities.checkout. Load the experience they can buy from your own catalog. Reserve a durable order ID before the first SDK call and reuse it for retries.
orders is your own database. Bind one invoice to the order atomically and reject a conflicting binding. Store the exact decimal amount and symbol returned by the server. If you already quoted a price on your site, compare it with the invoice before opening checkout. Send the browser only the saved payment ID.
Deliver only on a matching receipt
Fetch the merchant receipt from your backend. This call uses the app’s server credential and continues to work after the buyer’s session expires. Look up the order you saved when creating the invoice. Keep separate stores or keys for each app and network.fulfillOnce as a unique fulfillment record and entitlement in the same transaction. For an external delivery service, write a durable outbox record in that transaction and send the same fulfillment ID on retry.
A return to your site, wallet signature or polling timeout does not establish payment. For a status display you can use
payments.get(accessToken, paymentId) or payments.wait(accessToken, paymentId). On a timeout or service error, keep the current attempt and reconcile it. Never create another invoice just because the outcome is uncertain.
DevNet check. Buy a test pass, leave the wallet before delivery, then return to your site. Run reconciliation twice. Confirm that the member receives one pass, and only after a matching paid receipt.