On this page

Overview

LiteShoper PayPal (liteshop-paypal) adds PayPal Checkout to your store. Customers select PayPal at checkout, approve payment on PayPal.com, and return to your store with the order captured.

Payment flow

  1. Customer chooses PayPal at checkout
  2. LiteShoper creates a PayPal order and redirects to PayPal approve URL
  3. Customer approves → returns to /commerce/paypal/return
  4. Plugin captures payment → order confirmed
  5. Webhook PAYMENT.CAPTURE.COMPLETED acts as backup if return fails

Requirements

  • LiteShoper Commerce (core)
  • Marketplace license for liteshop-paypal
  • PayPal Business account
  • PayPal Developer app (REST API)

Installation

  1. Purchase on liteshoper.com → copy license key.
  2. Store admin → Plugins → Marketplace → install liteshop-paypal.

Setup

Admin: Commerce → Settings → PayPal

Setting Description
Enable PayPal Show PayPal at checkout
Sandbox Use sandbox Client ID + Secret first
Client ID / Secret From PayPal Developer → Apps
Webhook ID Optional but recommended for signature verification
Label Checkout button text (default “PayPal”)

PayPal Developer

  1. developer.paypal.com → Apps → Create app.
  2. Copy Sandbox Client ID and Secret into LiteShoper.
  3. Webhooks → Add webhook URL https://YOUR-STORE.com/commerce/paypal/webhook
  4. Subscribe to PAYMENT.CAPTURE.COMPLETED and CHECKOUT.ORDER.COMPLETED.
  5. Copy Webhook ID into LiteShoper settings.

Tutorial: first PayPal payment

  1. Enable PayPal in sandbox mode.
  2. Checkout with PayPal — log in with a PayPal sandbox buyer account.
  3. Approve payment — you return to order confirmation.
  4. Verify order status confirmed in admin.

URLs & webhooks

Path Purpose
/commerce/paypal/return Browser return after approval (GET)
/commerce/paypal/cancel Customer cancelled on PayPal
/commerce/paypal/webhook Server webhook (POST)

Admin reference

Settings: Commerce → Settings → PayPal. Orders: Commerce → Orders.

Dropship-related orders may redirect to /account/dropship after PayPal payment.

Troubleshooting

  • PayPal not available — plugin disabled or credentials missing.
  • Authentication failed — wrong Client ID/Secret or sandbox/live mismatch.
  • Payment not completed on return — check PayPal app logs; rely on webhook backup.
  • Invalid webhook signature — wrong Webhook ID.
  • Could not match payment to order — session/token issue; check server logs.

← All docs

LiteShoper Help Answers from plugins, docs & FAQs

Hi! Ask me about LiteShoper plugins, licenses, or documentation.