How to take payments on your website
There are a few ways to take money on a website, and the right one depends on what you sell. Here is how each works, and what you need before the first payment.
Updated 2026-11-08
Choose how people pay
- A payment link: one button for one thing at a fixed price, such as a voucher, a class or a deposit.
- A basket and checkout: several products and quantities paid for at once, with delivery.
- A subscription: the same amount every month or year, for a membership or a box.
- A deposit: part of the price at booking, the rest on the day.
Most small sites start with payment links and move to a basket when they sell more than a handful of products.
What you need
You need an account with a payment provider, such as Stripe, in your own or your business’s name. It asks for your bank details so it can pay you, and some details to confirm who you are. Once it is set up, your site sends customers to the provider’s payment page and the provider tells you when they have paid.
Keep it secure
- Never collect card numbers on your own pages: send customers to the provider’s payment page.
- Keep prices on the server, not only in the page, so nobody can change what they pay.
- Never put your provider’s secret key in your website’s code.
- Try the whole flow in the provider’s test mode before you take real money.
Fees, refunds and paperwork
The provider takes a fee from each payment, and some builders add a fee of their own on top: check before you choose. When the payment account is yours, refunds and disputes are handled there by you. Keep a refund policy and your terms on the site, and ask an accountant how VAT applies to what you sell.
Taking payments with Sunleaf
Sunleaf connects to your own Stripe account, and you can make one inside the connection if you have none. Ask for what you need in plain words, a buy button, a basket or a subscription, and Sunleaf sets it up. Prices for a basket are kept on the server, no Stripe key ever goes into your site’s code, every payment is listed on your site’s Payments page, and Sunleaf takes 0% of every sale.
Questions
Does Sunleaf take a fee on my sales?
No. Customers pay through your own Stripe account and you are the merchant: the money goes to you, minus Stripe’s usual card fees.
Can I take Apple Pay and Google Pay?
Stripe’s payment page offers the cards and wallets Stripe supports for your account and the customer’s device.
Keep reading