Customization
The Native OTP Assist SDK provides several customization options allowing you to make the SDK closer to the look & feel of your app and work as per your business requirements.
Following customizations are allowed:
  • Update merchant Logo.
  • Change the theme color.
  • Update merchant response timeout for fallback.
  • Disable Merchant Summary from UI.
You can display your brand logo in the PayU Native OTP Assist SDK to reinforce trust and branding. To set a logo in the SDK, you need to pass the drawable id of the logo image resource from your app.
1
let config = PayUOtpAssistConfig()
2
config.merchantLogo = #imageLiteral(resourceName: "logo")
Copied!

Theme Colour

Our SDK allows you to change the theme colour, you just need to set this primary colour in your colour file.
1
let config = PayUOtpAssistConfig()
2
config.themeColor = #colorLiteral(red: 0.01960784314, green: 0.231372549, blue: 0.7568627451, alpha: 1)
Copied!

Merchant Response Timeout

This is the duration PayU will wait for merchant surl/furl to load before passing the transaction response back to the app. If merchant surl/furl pages take longer to load then by default PayU has a response timeout of 10 sec. However, if merchants feel that their Surl/Furl can take longer than 10 seconds then they can set this flag.
1
let config = PayUOtpAssistConfig()
2
config.merchantResponseTimeout = 10000 // In milliseconds
Copied!

Disable Merchant Summary from UI.

You can disable merchant summary from the UI.
1
let config = PayUOtpAssistConfig()
2
config.shouldShowMerchantSummary = true
Copied!

Card Bin Eligibility Check

You can check the card whether your card bin eligible or not for the OTP on the Merchant App.
Please refer to this document for the eligibility call.
ZeroRedirectElgibleBins API.pdf
281KB
PDF
Bin Eligibility Check
Last modified 3mo ago