# How to link a PayPal button to a server-side checkout page on Webflow Cloud

DevFeed: [How to link a PayPal button to a server-side checkout page on Webflow Cloud](<https://devfeed.tech/articles/how-to-link-a-paypal-button-to-a-server-side-checkout-page-on-webflow-cloud-109617.md>)

Original publisher: [Read original article](<https://www.webflow.com/blog/paypal-checkout-page-webflow-cloud>)

Author: Ismail Ajagbe

Published: 2026-10-09T00:00:00Z

Content type: tutorial

Language: en

Sources: [Webflow Blog](<https://devfeed.tech/sources/webflow-blog.md>)

Topics: [Back end](<https://devfeed.tech/topics/backend.md>), [webflow](<https://devfeed.tech/topics/webflow.md>), [Web app](<https://devfeed.tech/topics/webapp.md>), [hosting](<https://devfeed.tech/topics/hosting.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>)

Tags: [adapter](<https://devfeed.tech/tags/adapter.md>), [api](<https://devfeed.tech/tags/api.md>), [app](<https://devfeed.tech/tags/app.md>), [build](<https://devfeed.tech/tags/build.md>), [button](<https://devfeed.tech/tags/button.md>), [capture](<https://devfeed.tech/tags/capture.md>), [checkout](<https://devfeed.tech/tags/checkout.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [cloudflare-workers](<https://devfeed.tech/tags/cloudflare-workers.md>), [cms](<https://devfeed.tech/tags/cms.md>), [component](<https://devfeed.tech/tags/component.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [custom-domain](<https://devfeed.tech/tags/custom-domain.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [guides](<https://devfeed.tech/tags/guides.md>), [link](<https://devfeed.tech/tags/link.md>), [order](<https://devfeed.tech/tags/order.md>), [paypal](<https://devfeed.tech/tags/paypal.md>), [server](<https://devfeed.tech/tags/server.md>), [webflow](<https://devfeed.tech/tags/webflow.md>)

## AI overview

A Webflow Designer button can link to a Next.js checkout app mounted at `/checkout`, where a server-side Route Handler fixes the price, creates a PayPal order, and redirects the buyer to PayPal. On return, the server looks up and captures the order, showing payment received only when the capture is completed; an idempotency header protects repeated captures. The guide requires Next.js 15+, npm, PayPal REST credentials, and a sandbox buyer account. Deployment must match `NEXT_PUBLIC_BASE_PATH` to the mount path and pair credentials with the correct sandbox or live API base. It also flags that the public order route can be called repeatedly and recommends Origin checks, rate limiting, and tying orders to server-side sessions before launch. Approval without a return visit leaves the order uncaptured; a webhook is suggested to address that gap.

## Source excerpt

Learn how to build a Webflow Cloud checkout page that creates and captures a PayPal order server-side.