PayOrc
SDKs

SDK - UI Customization

Customize the PayOrc Flutter SDK payment UI — colors, input styles, and app bar appearance.

SDK - UI Customization

1. Overview

The PayOrc Flutter SDK provides a customization API that allows merchants to tailor the look and feel of the payment UI to match their brand identity.

You can configure colors, input styles, and app bar appearance to ensure a seamless user experience within your application.

2. Visual Reference

Checkout Modal

Checkout Modal - SDK UI Customization

Card Entry Form

Card Entry Form - SDK UI Customization

3. Usage

Initialize customization before invoking any payment or card-related flows.

PayorcSdk.customization(
  inputBorderStyle: PayorcInputBorderStyle.outline,
  brandColor: "#000000",
  buttonColor: "#000000",
  accentColor: "#000000",
  appBarStyle: AppBarStyle.nativeIos,
);

4. Parameters

FieldTypeRequiredDescription
inputBorderStyleEnumNoDefines input field style (outline, underline).
brandColorStringNoPrimary brand color in HEX format.
buttonColorStringNoColor for primary action buttons.
accentColorStringNoAccent color for highlights and focus states.
appBarStyleEnumNoApp bar style (nativeIos, nativeAndroid).

5. Parameter Details

inputBorderStyle

  • outline — Bordered input fields
  • underline — Minimal underline style

brandColor

Primary color used across the SDK UI (Background color).

buttonColor

Used for call-to-action buttons such as Pay / Submit / Confirm.

accentColor

Used for focus states, active elements, and UI highlights.

appBarStyle

  • nativeIos — iOS-style navigation bar
  • nativeAndroid — Android Material design style

6. Example

PayorcSdk.customization(
  inputBorderStyle: PayorcInputBorderStyle.outline,
  brandColor: "#1A73E8",
  buttonColor: "#34A853",
  accentColor: "#FBBC05",
  appBarStyle: AppBarStyle.nativeAndroid,
);

7. Color Examples

Light Theme

PayorcSdk.customization(
  inputBorderStyle: PayorcInputBorderStyle.outline,
  brandColor: "#FFFFFF",
  buttonColor: "#1A73E8",
  accentColor: "#1A73E8",
  appBarStyle: AppBarStyle.nativeIos,
);

Dark Theme

PayorcSdk.customization(
  inputBorderStyle: PayorcInputBorderStyle.outline,
  brandColor: "#121212",
  buttonColor: "#BB86FC",
  accentColor: "#03DAC6",
  appBarStyle: AppBarStyle.nativeAndroid,
);

8. Best Practices

  • Call before payment flows — Initialize customization before invoking addCard or submitOrder.
  • Use HEX format — Always pass colors as HEX strings (e.g., "#FF0000").
  • Match your brand — Use your primary brand color for brandColor and accent for highlights.
  • Test both platforms — Verify the UI looks correct on both iOS and Android with different appBarStyle settings.

On this page