Repository navigation
Hosted Fields
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.
-
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."
-
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/ipnHosted 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.
- Open the Payplug payment method.
- Select Advanced (beta) Hosted Fields, fill in the Account ID, and save.
- 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).
- 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.
Hosted Fields supports deferred capture, with full control from the order screen: capture in full, partially or several times, or cancel. See Deferred capture.
Hosted Fields payments are refunded like the others, from the order screen — see Refunds.
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.
Official Payplug payment plugin for Sylius
Get started
Guides
- Payment methods
- Multiple channels and accounts
- Hosted Fields
- Deferred capture
- PPRO display eligibility
- Scalapay widget
- Refunds
Customize
Operate