PayTabs SDK makes the integration with the PayTabs payment gateway very easy by providing a ready-made payment screen that handles the card entry, and billing & shipping information and completes the missing details.
This article is dedicated to walking you through how to manage the theme in this SDK to be more fit and customized to suit your business needs.
To manage the theme kindly use these parameters as clarified in the below guide image to customize the colors, font, and logo by configuring the theme and pass it to the payment configuration as shown below:
And here is how you can manage this programmatically in the SDK:
let theme = PaymentSDKTheme.default theme.logoImage = UIImage(named: "Logo") //Change merchant logo. theme.backgroundColor = .blue theme.buttonFontColor = .red configuration.theme = theme
You can find the list of all PaymentSDKTheme.default object attributes that you can adjust to suit your business design as listed below:
⌂ To get familiar with the whole process and the other steps, kindly navigate to our "The Native IOS SDK Integration Manual" solution article. ⇦ And to navigate to the previous step in the integration process "Step 1 - Setup and activate the integration method" kindly click here. ⇦ And to get familiar with the rest of the steps regarding the current step "Step 2 - Configure the integration method" click here. ⇨ Or you can navigate to the next step in the integration process "Step 3 - Initiating the payment" kindly click here.