[Go to site: main page, start]

Skip to main content
ECRYPT’s hosted iframe allows you to embed a PCI compliant payment form on your webpages and securely collect payment details. Once details are collected, sensitive credit card information is tokenized in your ECRYPT account. You can customize the appearance of your payment form to match your brand and there are a variety of themes for quick implementation.

To get started, place the code snippet below on your site.

Pick a prebuilt theme for quick implementation. Here is a list of themes you could use.

Juan to provide iframe demo embed. Code sample:

Customize your theme’s colors, fonts and form messages in the appearance config.

Juan to provide Iframe styling examples Code Example

Appearance

This section covers the appearance config for both short-form and long-form themes.

Customizable form components include:

  • Color
  • Font Family
  • Form messages

Theshort-formtheme appearance config options:

  • short-form-light-zip
  • short-form-Dark-zip

Thelong-formtheme appearance config options:

  • long-form-light
  • long-form-dark
  • long-form-border-light
  • long-form-border-dark

Color

Ecrypt iframe will accept hex and letter color formats only.
Shortformiframeimage
Longformiframeexample 1

Google Font

  • Go to Googe font site
  • Select a font you like, once you add the font to your selected family.
  • Apply the CSS rules to specify families. You should see a CSS code snippet font-family: 'Roboto', sans-serif;
  • Only copy the value of the CSS rule font-family ‘Roboto’, sans-serif
  • Then paste it in the config for example

Capturing messages from the iframe

We are bubbling up the validation alerts to you using Post message via postMessage Here are all of the alert messages ECRYPT is passing back to you:

Succesful Responses

Once the user successfully inputs their credit card information the API will post back a token id. Here is an example of how you can listen for the success message.

Hide alert message in the iframe

The config option only accepts true or false. To hide alerts pass true.