Overview
When integrating Hyp Enterprise’s payment page, you often want to tailor the look and feel of the page to better match your merchant website's branding and create a smoother checkout experience.
Hyp Enterprise provides two ways to do this:
ppsJSONConfig— a configuration element that you can insert into your payment page requests
Interactive playground
You can use the Hyp playground to experiment with various payment page settings and quickly see how they affect the page's look and behavior.
The playground allows you to define the payment page configuration with a UI builder, preview the resulting payment page, and use the API request view to copy the specific XML payload that generates the payment page you've constructed.
What is ppsJSONConfig
The ppsJSONConfig is an XML element inside the <paymentPageData> block of a doDeal request. It contains a JSON object with several configuration properties that you can use to control what various elements of your payment page look like, what elements to add or hide, and how to modify the default behavior.
You can use ppsJSONConfig in both full-page and iframe-based integrations.
With Pay By Link, you can also use the paymentDemandJSONConfig element. While ppsJSONConfig controls the payment page for the requester, paymentDemandJSONConfig allows you to customize the payment page that the recipient of the link sees. You can use it instead of or in conjunction with ppsJSONConfig. Both elements use the same JSON structure described below.
Among other things, these configuration elements enable you to:
Change the default UI language.
Change the logo and text labels.
Add custom fields (such as for collecting an email, address, gift message, etc.) and supply validation rules.
Configure payment methods displayed on the payment page.
Provide custom CSS matching your brand style.
Here's a request with ppsJSONConfig containing most supported JSON properties with sample values, along with an example of paymentDemandJSONConfig:
As you can see from the example, the JSON object inside ppsJSONConfig has two top-level properties: frameAncestorURLs and uiCustomData.
If you're using iframe-based integration of the payment page, you need to specify the frameAncestorURLs property and point it to your merchant website for the iframe integration to work properly.
All other ways to configure the look and feel of your payment page are contained inside the uiCustomData property. The following sections explain various tasks that you can perform using top-level properties of uiCustomData. Here's a reference that shows which section describes which uiCustomData property:
businessLogoUrl: see Adding Business Logos and Custom Images.customText: see Customizing the Default Text.defaultPaymentMethod: see Managing Payment Methods.disableBitRedirect: see Changing the Redirect Behavior When Using bit.disableRetryOnFailure: see Configuring the Transition Page.disableTxnRedirectPopup: see Configuring the Transition Page.inputLabelType: see Configuring Field Display Options.inputPlaceholder: see Configuring Field Display Options.keepCCDetails: see Suggesting To Save Credit Card Data.paymentMethods: see Showing Saved Credit Cards and Managing Payment Methods.redirectTargetParent: see Full-Page Redirect vs Iframe-Based Integration.skipPaymentMethodsScreen: see Managing Payment Methods.template: see Payment Page Templates.uiLang: see Changing the UI Language.userData: see Adding Custom Input Fields.
Last updated
Was this helpful?