Custom SDK Style
style selected elements & general themes
Customizable themes
When configuring the SDK, you may set the following code as the configuration object:
const spClient = SensePassFrontEndSDK.config({
mode: "sandbox", // "sandbox" | "production"
debug: true, // optional for logs
visualizer: true, // optional visual logs, requires HTML with id="sensepass-front-end-visualizer"
clientId: 'aee8d2cdc1cb...', // a SensePass's "clientId"
methodType: "manual_capture", // type for the transaction, defaults to "manual_capture", enum: "manual_capture" | "tokenize"
theme: { // optional theme for various packages
/** angular material provides extensive documentation on customizing their theme
* you can find it at: https://material.angular.io/guide/theming */
material: "https://pay.sandbox.sensepass.com/publicAssets/themes/custom-sample-material.theme.css", // sample for a customized material theme
sensepassEcommerce: "https://pay.sandbox.sensepass.com/publicAssets/themes/custom-sample-ecommerce.theme.css", // sample for a customized sensepass theme
paymentMethodGrid: "horizontal", // horizontal | vertical style of the payment options
config: {} // a configuration object for specific payment methods text/animations
}
})
Download and edit the following themes you wish to style on your own:
Save your themes in a hosting site of your choosing and set their URL in the config JSON.
Use the SDK Theme Config Model to set you custom text and other UI configurations.
You may test your themes on our playground: https://js.sensepass.com
Last updated
Was this helpful?