Skip to content
Store

Engine Pay

PayPal

Connect PayPal to Engine Pay, test with the PayPal sandbox, then switch to live payments for the Buy button and the shop.

PayPal is built into Engine Pay. Buyers pay on PayPal's own page with their PayPal account or a card, so card numbers never reach your site.

What you need

  • A PayPal business account.
  • An app in your PayPal developer account, which gives you a Client ID and a Secret. PayPal gives separate apps and keys for its sandbox (test) and for live payments.

Set it up

  1. Go to Components > Engine Builder > Options > Payments.
  2. Under PayPal, set PayPal account to Sandbox (test).
  3. Paste your sandbox Client ID and Secret.
  4. Check Default currency and Send order emails to.
  5. Press Save & Close.

On Components > Engine Builder > Orders, the Payments box now shows PayPal as sandbox. It shows not set up while the Client ID or Secret is missing, and live once you switch over.

Test a payment

  1. Add a Buy button to a test page, or put a product in the cart.
  2. Pay with a PayPal sandbox buyer account.
  3. You come back to the receipt page, which should say Payment received.
  4. Check Orders: the order is Paid and marked as a test.
  5. Check that the buyer receipt and your order email arrived.

Orders paid in sandbox mode are marked as test orders, and the owner email says "TEST MODE".

Go live

  1. Make a live app in your PayPal developer account.
  2. In Options > Payments, set PayPal account to Live.
  3. Paste the live Client ID and Secret and save.
  4. Make one small real purchase to check everything, then refund it in PayPal.

If the keys are wrong, buyers see an error and the order is marked Failed. The message "PayPal: the client ID or secret was not accepted" means the Client ID or Secret does not match the mode you chose.

How a PayPal payment works

  1. The buyer chooses PayPal and presses the button.
  2. Engine Pay creates the order on your site and sends the buyer to PayPal with the amount.
  3. The buyer approves the payment on PayPal.
  4. PayPal sends the buyer back to your receipt page. Engine Pay then completes the payment with PayPal and checks that the amount and currency match the order.
  5. The order becomes Paid, emails go out, stock goes down and download links start working.

The payment is completed when the buyer comes back to your site. If the buyer cancels on PayPal, they see "The payment was cancelled. Nothing was charged."

For shop orders, PayPal shows the items, shipping, tax and discount as separate amounts when they add up exactly to the total. If the amount PayPal reports does not match the order, the order is marked Failed instead of paid.

Delivery address and buyer details

When a Buy button asks for a delivery address, PayPal collects it from the buyer's PayPal account. The buyer's email, name and address from PayPal fill in any details that are still empty on the order. Details the buyer already gave at your checkout are kept.

Refunds

Engine Pay does not send refunds to PayPal. To refund:

  1. Make the refund in your PayPal account.
  2. On Orders, tick the order and press Mark refunded.

See Orders.

    Type to search all pages. ↑↓ to move, Enter to open.