Customizing the Embedded Checkout

Make the checkout form match your brand perfectly!

The myPOS Embedded Checkout comes with a clean default design, but you can easily customize it to match your website's look and feel.

Prefer the default style? No problem! The original myPOS design works great out of the box.

What You Can Customize

ParameterTypeDescription
formBackgroundColorStringBackground color of the form
labelFontSizeStringLabel text size (12px - 16px)
labelColorStringLabel text color
inputBorderRadiusStringRounded corners on input fields
payButtonBorderColorStringPay button border color
payButtonBackgroundColorStringPay button background color
payButtonBorderColorHoverStringBorder color when hovering
payButtonBackgroundColorHoverStringBackground color when hovering
payButtonColorStringButton text color
payButtonColorHoverStringText color when hovering
payButtonFontSizeStringButton text size

🔷 Blue Theme Example

import * as MyPOSEmbedded from 'mypos-embedded-checkout';

var paymentParams = {...};
var callbackParams = {...};

var customization = {
    formBackgroundColor: '#e5f2fe',
    labelFontSize: '13px',
    labelColor: '#007ff5',
    inputBorderRadius: '6px',
    payButtonBorderColor: '#007ff5',
    payButtonBackgroundColor: '#007ff5',
    payButtonColor: '#fff',
    payButtonFontSize: '15px',
}

MyPOSEmbedded.createPayment(
    'embeddedCheckout',
    paymentParams,
    callbackParams,
    customization,
);

🌑 Dark Theme Example

import * as MyPOSEmbedded from 'mypos-embedded-checkout';

var paymentParams = {...};
var callbackParams = {...};

var customization = {
    formBackgroundColor: '#555d60',
    labelFontSize: '12px',
    labelColor: '#fff',
    inputBorderRadius: '0px',
    payButtonBorderColor: '#f8be37',
    payButtonBackgroundColor: '#f8be37',
    payButtonColor: '#fff',
    payButtonFontSize: '14px',
}

MyPOSEmbedded.createPayment(
    'embeddedCheckout',
    paymentParams,
    callbackParams,
    customization,
);

Pro Tip: Use these examples as starting points and adjust the colors to match your brand perfectly!