thelastapi
Get started free

Payments

One-time sales and subscriptions from the first call: thelastapi is the merchant, and you verify your identity only to withdraw.

Take payments online without opening a merchant account

Take card payments online immediately using thelastapi as the merchant, with no merchant account setup, processor keys, or upfront identity checks.

Payments

A customer portal where users cancel or change their card

Generate a hosted billing portal URL with vibiz.payments.portal(userId, { return_url }) to let subscribers update their card or cancel anytime.

Payments

Add a subscription checkout to a SaaS

Add recurring subscription checkout to your SaaS using @vibiz/app or direct API calls with hosted checkout links, webhooks, and billing portals.

Payments

An Upgrade button and an "is this user premium?" check

Check if a user has an active subscription with a single server-side call to vibiz.payments.hasActive, using your user ID and plan lookup key.

Payments

In-app purchases for iOS and Android apps, with one premium check

Connect iOS and Android in-app purchases to thelastapi to check user premium status with a single backend call across mobile and the web.

Payments

Let an AI agent set up payments safely

AI agents can create products, checkouts, and webhooks safely because live money moves, refunds, and withdrawals are locked behind owner permissions.

Payments

Merchant of record vs payment processor for a small SaaS

A merchant of record acts as the legal seller for your software, while a payment processor simply routes card charges through your own company entity.

Payments

Payment fees explained: what a $100 sale leaves you

A $100 sale leaves you with $94.80 after a $3.20 card processing fee and a $2.00 platform fee, with zero fees when withdrawing to your bank.

Payments

Payouts: the 7-day hold and withdrawing to your bank

Live payments clear after a 7-day hold, moving from pending to available balance so you can withdraw to your bank account without payout fees.

Payments

Put your brand on the checkout page

Customize your checkout page branding with your own logo, brand colors, fonts, and border styles using the thelastapi payments API or CLI.

Payments

Refunds and disputes: how they work and what they cost

Refunds return purchase amounts while forfeiting processing fees, whereas disputes deduct the charge plus a $15 fee while the bank investigates.

Payments

Sell a one-time product with a hosted checkout link

Generate a hosted checkout link for a one-time digital product using the CLI, an API call, or the SDK, with no merchant account setup required.

Payments

Sell from a static site with a checkout link

To accept payments on a static website, call the checkout API from a backend route to generate a single-use hosted checkout link and redirect the buyer.

Payments

Sell in multiple currencies

Accept payments in 35 currencies using thelastapi by defining localized prices or checkouts that settle directly into your project USD balance.

Payments

Test payments in development without real money

Test card payments in development using test card numbers, simulated charges, and instant webhooks without real money or bank accounts.

Payments

Verify payment webhooks safely

To verify a payment webhook signature safely, compute an HMAC-SHA256 hash of the timestamp and raw body, comparing it with timing-safe equality.

Payments