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
}
})Last updated
Was this helpful?


