Payments & feesAdvanced10 min read

Accept Bitcoin payments with BTCPay Server

Configure a store and receiving wallet, test checkout and invoice states, then plan unusual payments, refunds and recoverable backups.

A store creates an invoice, detects payment and fulfills the order after its settlement policy is met.
A store creates an invoice, detects payment and fulfills the order after its settlement policy is met.

The quick answer

BTCPay Server creates invoices and watches payments to your configured wallet. A reliable checkout also needs a fulfillment policy, working payment monitoring and a tested refund and backup process.

An invoice connects an order to a payment

Your store fixes a payment request for a limited time and tracks the money received. On-chain broadcast, confirmation and order fulfillment are different events. A payment processor must connect them according to a policy you understand.

Before you start

  • A maintained BTCPay deployment with a working HTTPS address.
  • Access to store settings and the shop integration you intend to use.
  • A separately backed-up receiving wallet and its public configuration.
  • Written decisions on confirmations, expiration, shortfalls and refunds.

Step by step

  1. 1

    Create the store and wallet

    Choose a maintained deployment, create your store and connect a supported wallet. Verify that an address generated by BTCPay matches your intended wallet before accepting customer money.

  2. 2

    Test checkout and settlement

    Use a small order to test the full path from invoice creation through payment detection and settlement to the shop’s order update.

  3. 3

    Practice exceptions and recovery

    Check how staff handle partial, late and excess payments. Complete a small refund and verify that backups restore both wallet access and store records.

Worked example

An invoice requests 100,000 sats. A customer sends 98,000 after their provider deducts a fee. The 2,000-sat shortfall remains an accounting exception; a transaction being visible does not make the invoice fully paid.

Detailed walkthrough

Choose a deployment you can maintain

Use the official deployment guide to choose between self-hosting and a third-party instance. Self-hosting gives operational control and also responsibility for updates, disk space, certificates, access and backups. With a host, check who maintains the node, which features are available and how you recover store records if the service disappears. The software being open source does not remove the need for an accountable operator.

Create a store with an identifiable business name and accounting currency. Set appropriate account protection and grant staff only the permissions they need. Confirm the Bitcoin backend has synchronized before testing payment detection. Record the domain used for checkout so customers can recognize it. A visually polished checkout cannot compensate for a disconnected backend or an account that staff cannot recover.

The storefront creates payment requests through BTCPay while the Bitcoin backend monitors the receiving wallet.
Figure 1 · The storefront creates payment requests through BTCPay while the Bitcoin backend monitors the receiving wallet.

Connect and verify the receiving wallet

For an on-chain watch-only arrangement, import the supported public wallet configuration from your hardware or software wallet. Match the account, derivation path and script type. A dedicated merchant account keeps invoice traffic and recovery ranges separate from personal payments. Verify several derived addresses against the originating wallet or trusted signer before displaying them to customers.

Keep the spending backup outside the payment server when using an external signer. Public configuration lets the server issue addresses and monitor payments; it cannot normally sign withdrawals. If you choose a hot wallet instead, server compromise can expose signing access, so limit its balance and preserve the documented backup. Lightning setup is separate and needs an operational node, liquidity and implementation-specific recovery.

Test checkout against invoice states

Connect the supported shop plugin or API integration, create a low-value product and open its checkout as a customer would. Check the amount, payment method, invoice expiry and order reference. Pay the exact request and observe the invoice in the store dashboard. Verify that the storefront updates the correct order only after the event your fulfillment policy requires.

Use the current status terminology in the table. Processing means fully paid while settlement conditions remain outstanding; Settled means those conditions were met. A manually marked status is an operator decision, not independent evidence of blockchain confirmation. Preserve invoice IDs beside shop order IDs so staff can investigate disagreements without relying on customer screenshots.

Base statusMeaningStore response
NewAwaiting full payment before expiryKeep the order pending
ProcessingPaid, awaiting settlement conditionsWait according to confirmation policy
SettledPayment and settlement conditions metFulfill under business policy
ExpiredExpired before full paymentReview partial or late funds
InvalidSettlement conditions missed the monitoring windowInvestigate the actual transaction
An invoice moves from awaiting payment to processing and settled, with expiration and invalid states requiring review.
Figure 2 · An invoice moves from awaiting payment to processing and settled, with expiration and invalid states requiring review.

Handle partial, excess and late payments

Write a procedure for each payment exception before launch. For a shortfall, compare requested and received amounts and check whether a provider deducted a withdrawal fee. Decide whether the business accepts a tolerance, requests a remaining amount through the supported process or offers a refund. Do not tell a customer to send blindly to an expired request; check the invoice and your store’s supported handling first.

An overpayment needs a recorded decision about excess funds. A late payment may reach a valid wallet address after the invoice’s rate quote expired; expiry does not prevent an on-chain transfer. Match the transaction, invoice history and order before manually changing a status. In automation, authenticate payment notifications, handle repeated delivery safely and query invoice state when needed. A browser returning to a success page is not sufficient proof of payment.

Complete a refund as a new payment

Open the invoice’s refund action and choose the supported payout method and amount. Review whether the calculation uses the original rate, the current rate or the amount in bitcoin. State who pays any refund fee according to your published policy. The refund creates a claim workflow; sharing a claim link does not itself broadcast money.

Let the customer provide a fresh destination through the supported claim process. Verify the request belongs to the intended refund, then approve, sign and broadcast the payout with the configured signer. Check the actual destination and total fee, and save its transaction ID with the original order. Restrict access to claim links and payout permissions. A test refund should prove the whole process, including the customer’s final receipt.

A verified invoice creates a refund claim, the customer supplies a destination and the merchant approves a separate payout.
Figure 3 · A verified invoice creates a refund claim, the customer supplies a destination and the merchant approves a separate payout.

Back up keys, store records and operational knowledge

A wallet seed can recover on-chain signing keys but does not recreate invoice records, store settings, permissions or shop mappings. Preserve the public wallet policy, account paths, server/database backups and integration configuration according to your deployment. Encrypt sensitive archives and keep protected copies away from the host. Monitor backup failures and test a restore in an isolated environment.

Lightning channel recovery requires its own current procedure; do not restart an old channel database snapshot as if it were current. Distinguish planned migration from disaster recovery and never run duplicate copies of the same Lightning node. For day-to-day operations, watch synchronization, disk space, certificate expiry, failed notifications and unusual invoices. Give another authorized operator a documented path to recover service without exposing the wallet seed in support tickets.

Troubleshooting

ProblemLikely causeWhat to do
The wallet receives funds but the order stays unpaidThe payment may be outside the invoice or the shop notification failed.Match destination and invoice ID, inspect invoice state and check the integration’s authenticated event logs.
An invoice is paid partialThe received amount is below the request, possibly after a provider fee.Calculate the exact shortfall and apply the store’s documented exception procedure.
An expired invoice receives fundsExpiration ends the quote, not the address’s ability to receive.Review the late payment and order before deciding fulfillment, adjustment or refund.
A refund claim exists but nothing was sentThe resulting payout still needs approval, signing or broadcast.Inspect payout state and complete the authorized signing workflow once.

Before you continue

A related question

Does BTCPay require the store’s seed on the server?

An on-chain store can monitor a public wallet configuration and use an external signer for spending. A server hot wallet is a separate choice that places signing secrets on the server.

More questions

Can a hosted BTCPay operator see store activity?

The host can have access to server data and wallet metadata. Public-key-only setup keeps on-chain signing keys separate, but does not make invoices or customer information private from the operator.

Can I accept zero-confirmation on-chain payments?

That is a business risk decision. Unconfirmed transactions can be replaced or conflict; use a confirmation policy suited to the value and reversibility of fulfillment.

Does archiving an invoice stop payment detection?

No. Archiving changes its visibility in the default list. Payment amount, timing and settlement conditions still determine the invoice’s financial state.

Try it with a tool

Sources & further reading

Source links checked on 16 Oct 2026. Examples explain the mechanics; provider fees and features can change.

  1. BTCPay Server: deployment docs.btcpayserver.org
  2. BTCPay Server: wallet setup docs.btcpayserver.org
  3. BTCPay Server: invoices and settlement docs.btcpayserver.org
  4. BTCPay Server docs.btcpayserver.org
  5. BTCPay Server: custom integrations docs.btcpayserver.org
  6. BTCPay Server: backup and recovery docs.btcpayserver.org

Keep learning

All tutorials

Search 1Bitcoin

Tools & guides

Hub listings