Skip to main content

How PayPal's Payment Gateway Works for Businesses and Sellers

What a PayPal Payment Gateway Does

A PayPal payment gateway is the system that lets a business or seller accept PayPal payments on their own website or app. When a customer clicks "pay with PayPal" on your checkout page, the gateway handles the connection between your store and PayPal's servers—it encrypts the payment details, sends them securely to PayPal, and tells your website whether the payment went through or failed.

The gateway itself is not a separate product you buy. It is built into PayPal's merchant tools. If you have a PayPal Business or Premier account, you already have access to it. You integrate it into your website using code that PayPal provides, and from that point forward, customers can pay you without leaving your site (or they can be sent to PayPal to complete the transaction, depending on which integration method you choose).

The key difference from a simple PayPal.me link or invoice is that a gateway lets you embed payments directly into your sales flow. A customer browsing your store sees a "Pay with PayPal" button, clicks it, and the money moves to your account—all without them having to copy a link or open a separate email.

Key Takeaways

  • A PayPal payment gateway is a tool that lets customers pay you through PayPal while staying on your website, rather than being sent away to a PayPal page.
  • You need a PayPal Business or Premier account to set up a gateway; personal accounts cannot accept merchant payments this way.
  • PayPal offers two main integration paths: hosted checkout (PayPal handles the payment page) and embedded checkout (the payment form sits on your site), each with different setup complexity and customization options.
  • Transaction fees apply to every payment—currently 2.99% plus $0.30 per transaction for standard rates, though rates vary by country and payment type.
  • The gateway works with shopping carts, invoicing software, and point-of-sale systems, so you do not have to build it from scratch yourself.

PayPal Business Account vs. Personal Account

You cannot use a personal PayPal account to set up a payment gateway. Personal accounts are designed for sending and receiving money from friends, family, or small informal transactions. They do not have the merchant tools or the security certifications required to process payments on a website.

A PayPal Business account is free to open and gives you access to the gateway, invoicing, bulk payment tools, and detailed transaction reports. You provide a business name (which can be a sole proprietorship under your own name) and a tax ID or Social Security number. Once approved, you can integrate the gateway into your website.

A PayPal Premier account is an older tier that also supports gateways, but PayPal now encourages new sellers to open Business accounts instead. If you already have a Premier account, it still works; you do not need to switch.

Hosted Checkout vs. Embedded Checkout

PayPal offers two ways to integrate the gateway, and the choice depends on how much control you want over the payment experience.

Hosted checkout means the customer clicks "Pay with PayPal" on your site, and PayPal's servers take over—they see a PayPal-branded payment page, enter their details there, and are sent back to your site once the payment is done. This is simpler to set up because PayPal handles all the security and compliance. You do not need a developer; many website builders (Shopify, Wix, BigCommerce) have one-click PayPal integration that uses hosted checkout. The downside is that customers leave your site, which can feel like a break in the experience.

Embedded checkout (also called in-context or in-line checkout) keeps the customer on your site the whole time. The payment form appears in a popup or on the same page, and they never see a PayPal domain. This feels more seamless and can reduce cart abandonment. The tradeoff is that it requires more technical setup—you or a developer need to write code using PayPal's API (application programming interface) to make it work. PayPal provides the code libraries and documentation, but you have to integrate them yourself.

For most small sellers, hosted checkout is the practical choice. For larger stores or custom applications, embedded checkout is worth the extra work.

How Transaction Fees Work

Every time a customer pays you through the PayPal gateway, PayPal takes a fee. The standard rate in the United States is 2.99% of the transaction amount plus $0.30. So a $100 payment costs you $3.29. Rates are lower for nonprofits and higher for certain payment types (like credit cards processed in person). Rates also vary by country.

The fee is deducted automatically before the money lands in your PayPal account. You see the net amount—what you actually receive—in your transaction history. There is no separate invoice or bill; it happens behind the scenes on every single transaction.

If you process a high volume of payments, PayPal offers PayPal Commerce Platform or PayPal for Marketplaces, which can negotiate lower rates. These are aimed at larger businesses and require more setup, but they can save money if you are processing thousands of dollars per month.

Integration With Shopping Carts and Other Tools

You do not have to build a payment gateway from scratch. Most shopping cart platforms and point-of-sale systems have PayPal gateway integration built in or available as a plugin.

Website builders like Shopify, Wix, BigCommerce, and Squarespace all offer one-click PayPal integration. You log into your PayPal Business account, authorize the connection, and the gateway is live. No coding required.

Invoicing and billing software like Wave, FreshBooks, and Stripe also support PayPal gateway payments. If you send invoices to customers, they can pay directly from the invoice using PayPal.

Point-of-sale systems like Square and Toast include PayPal as a payment option for in-person and online transactions. If you run a physical store or market stall, you can accept PayPal payments through these systems without setting up a separate gateway.

Custom code is also an option. PayPal publishes API documentation and code samples in multiple programming languages (JavaScript, Python, PHP, Java). If you have a developer or are building a custom application, you can integrate the gateway directly using these tools.

Security and Buyer Protection

When a customer pays through the PayPal gateway, their payment details never touch your server. PayPal's servers handle the encryption and storage, which means you do not have to meet the strict security standards (called PCI compliance) that come with storing credit card data yourself. This is a major advantage for small businesses.

Customers also get PayPal's Buyer Protection program. If they dispute a charge or claim they did not receive what they paid for, PayPal investigates and can refund them. As a seller, you are protected too—if you ship a physical item and get tracking confirmation, PayPal's Seller Protection usually covers you if the buyer claims non-delivery.

The gateway uses industry-standard encryption (TLS/SSL) to protect data in transit. PayPal also monitors for fraud and can flag suspicious transactions before they complete.

Setting Up Your First Gateway Integration

The steps depend on what platform you are using, but the general flow is the same.

First, open a PayPal Business account at paypal.com. Provide your business name, address, and tax ID or Social Security number. Verification usually takes a few minutes to a few hours.

Second, choose your integration method. If you use a website builder or shopping cart, log into that platform, find the payment settings, and select PayPal. You will be asked to authorize the connection—PayPal will send you to log in, and then you approve the integration. If you are using custom code, download PayPal's SDK (software development kit) for your programming language and follow their integration guide.

Third, test the gateway in sandbox mode. PayPal provides a test environment where you can process fake transactions without real money changing hands. Use this to make sure the payment flow works before you go live.

Fourth, switch to live mode once testing is complete. From that point forward, real customer payments will be processed.

Frequently Asked Questions

Can I use PayPal gateway on my Shopify store?

Yes. Shopify has built-in PayPal integration. Go to Settings > Payment Providers, select PayPal, and authorize your PayPal Business account. Customers will see "Pay with PayPal" as a checkout option. No additional setup is needed.

What happens if a customer's payment fails?

The gateway will show an error message on your site (for example, "Card declined" or "Insufficient funds"). The customer can try again with a different payment method, or they can contact their bank or PayPal to resolve the issue. No money is charged if the payment fails.

Do I have to use PayPal's hosted checkout, or can I build my own payment form?

You can build your own form using PayPal's API, but it requires developer knowledge. Most small businesses use hosted checkout or embedded checkout because it is simpler and PayPal handles compliance. If you want full customization, you will need to hire a developer or learn to code.

How long does it take for money to show up in my PayPal account?

Payments appear in your PayPal account instantly, but transferring that money to your bank account takes one to three business days depending on your bank. You can also keep the money in PayPal and use it to pay other sellers or withdraw it later.

What if I want to lower my transaction fees?

Standard rates are fixed, but PayPal offers lower rates for high-volume sellers through PayPal Commerce Platform or custom enterprise agreements. If you process more than $10,000 per month, contact PayPal sales to discuss your options.