Design Payment Pages 2.0 CSS
Learn how to customize the visual style of Payment Pages 2.0 using CSS files, including responsive and non-responsive options, and manage associated resources like images and JavaScript.
The CSS pack includes the following folders and files:
-
css: This folder contains two types of CSS files. You use one of these CSS files to customize the visual style of your Payment Pages 2.0 form.-
hpm2.css: Responsive CSS that delivers the Payment Pages form in various screen sizes on devices, such as mobile, tablet, or desktop. By default, this CSS is included inhpm2.html. -
hpm2_nonresponsive.css: The CSS file designed to render the Payment Pages form in desktop screen size. If you want to use this CSS file, edithpm2.htmland replacehpm2.csswithhpm2_nonreponsive.css.
-
-
img: This folder contains local copies of the image files used in Payment Pages 2.0. -
js: This folder contains local copies of the JavaScript files used in the Payment Pages form. -
hpm2.html: This is a copy of a Payment Pages form. You use this file as a working canvas while designing the look and formatting of your Payment Pages form.
To design the Payment Pages 2.0 style using the attached package :
- Create a sandbox folder for this exercise.
- Download the zip file, hpm2_style.zipNo Content found for /db/organizations/zuora/repositories/prod-sitemap/content/documents/external_publications/payments/Payment_Pages_2.0/I_Design_Payment_Pages_2.0_CSS/hpm2_style.zip.
- Unzip the file in the sandbox folder you created in the first step, and the folder structure will be created as described above.
- Start up your web server.
- Edit the
hpm2.cssfile under thecssfolder to update the style and format of the Payment Pages 2.0 form. Savehpm2.css. If you are using the non-responsive CSS, update and savehpm2_nonresponsive.cssinstead ofhpm2.css. - In a browser, open
hpm2.htmlto see how the Payment Pages 2.0 form looks with the changes you made in Step #5. This file is in the top folder of the sandbox folder. - Repeat Step #5 and #6 as necessary to customize the look and format of the Payment Pages 2.0 form.
- After you finalize the style of your Payment Pages 2.0 form, replace the default CSS elements with your updated CSS elements. Copy the CSS elements in
hpm2.cssfile and paste them to the CSS field on the Payment Pages configuration page.
Note that implementing customized JavaScript is not allowed for security reasons.