Skip to content

Hosted Fields

adumont-payplug edited this page Oct 20, 2026 · 1 revision

Hosted Fields (beta)

Card fields hosted by Payplug but rendered inside your own checkout: the shopper never leaves your page, and card data never touches your server.

Hosted Fields is one of the three card display modes. It runs on Payplug's Unified API, which is why it needs the two extra pieces below.

What you need

  1. An Account ID — a mandatory field that appears when you select the Advanced (beta) Hosted Fields display mode. Your account manager provides it. Saving without it fails with "Advanced features require an Account ID, please contact your Account Manager."

  2. A webhook receiver pointing at the fixed URL below, configured once per merchant in the Payplug Cockpit. Ask your account manager to set it up.

    https://your-shop.example.com/payplug/v2/ipn
    

    Hosted Fields notifications come from this receiver, not from the per-payment-method callback the other modes use. See Webhooks and logging.

With several Payplug accounts, repeat both for each one — see Multiple channels and accounts.

Enabling it

  1. Open the Payplug payment method.
  2. Select Advanced (beta) Hosted Fields, fill in the Account ID, and save.
  3. Make sure the receiver above is registered.

The method is validated against your account on save; if something is missing it is disabled with an explanatory banner (When something is misconfigured).

What the shopper can do

  • Pay with a new card, optionally ticking Save my card when One click is enabled.
  • Pay with a saved card.
  • Choose the network when their card is co-branded and supports two.

Deferred capture

Hosted Fields supports deferred capture, with full control from the order screen: capture in full, partially or several times, or cancel. See Deferred capture.

Refunds

Hosted Fields payments are refunded like the others, from the order screen — see Refunds.

SDK URL and testing

The checkout loads the Hosted Fields JavaScript SDK from Payplug's production address by default, so a standard install needs nothing.

The address can be overridden with the PAYPLUG_HOSTED_FIELDS_SDK_URL environment variable. You only need it to point at a non-production SDK: to test the plugin against a Payplug test environment, contact your Payplug account manager, who will give you what to set.

Clone this wiki locally