Customizing theme for Headless Payments
Each Headless Payments flow uses a Transaction Session API to generate a sessionId that initialises the respective payment component via the Transak UI SDK. This guide covers the optional config object available on each Headless Payments flow.
Headless Apple Pay
The Transaction Session API used in Headless Apple Pay accepts an optional config object to customise the look and feel of the Apple Pay button component. Partners can use it to control the colorMode, corner rounding, and height of the embedded button.
config object
Sample Request
A successful response returns a sessionId used to mount the Apple Pay component via the Transak UI SDK.
Headless Google Pay
The Transaction Session API used in Headless Google Pay accepts an optional config object to customise the look and feel of the Google Pay component. Partners can use it to control the colorMode, corner rounding, and height of the embedded button.
config object
Sample Request
A successful response returns a sessionId and expiresAt used to mount the Google Pay component via the Transak UI SDK.
Headless Cards
The Transaction Session API used in Headless Cards accepts an optional config object to customise the look and feel of the card payment form. Use colorMode to switch between dark and light themes, or colors to override individual theme colors with your own brand palette.
config object
colors object
Sample Request
A successful response returns a sessionId and expiresAt used to mount the card component via the Transak UI SDK.