SDK Integration
  • Getting Started
  • Onboarding Requirements
  • Hash Generation
  • Test Merchant list
  • Android
    • Android SDK Offering
    • PayUCheckoutPro
      • Integration
      • Build the Payment Params
        • Additional Params
      • Hash Generation
      • Set up the payment hashes
      • Initiate the Payment
      • Customized Integration
        • Set Webview Properties
        • SDK Configuration
        • Additional Offerings
      • Offers Integration
      • Convenience Fee Integration
      • Custom Note Integration
      • MCP Integration
    • Core
      • Supported Payment Types
      • TPV Integration
      • Merchant Web Services
        • Getting Enabled Payment Options
        • GetCheckoutDetails API
        • Lookup API
    • Custom Browser
      • Integration
        • CustomBrowser Config
        • CustomBrowserCallback
        • Supporting below Lollipop Versions
        • Third-Party Payments Support
      • Sample App
      • Change Logs
    • Native OTP Assist
      • Integration
      • Customization
      • Change Logs
    • UPI
      • Integration
      • TPV Integration in UPI
      • Sample App
      • Change Logs
    • Google Pay™
      • Integration
      • Sample App
    • PhonePe
      • Integration
      • Sample App
      • Change Logs
    • OlaMoney
    • PayU OTP Parser
      • Integration
    • FAQ Android
  • iOS
    • PayUCheckoutPro
      • Integration
      • Advanced Integration
      • Set up the payment hashes
      • Convenience Fee Integration
      • MCP Integration
      • Custom Note Integration
    • Core
      • POD Integration
      • Seamless
      • Web Services
      • Objective C-Non-Seamless
      • Standing Instructions
      • TPV Integration
      • Sample App
    • Custom Browser
      • Sample App
    • OlaMoney
    • Native OTP Assist
      • Integration
      • Customization
    • UPI
      • Integration
      • Sample App
    • PayUParams
      • PayUSIParams
      • PayUBeneficiaryParams
  • Releasing to Apple
  • React-Native
    • PayUCheckoutPro
      • Integration
      • Set up the payment hashes
      • Advanced Integration
      • Change Logs
    • Core
    • Non-Seamless Wrapper
    • TPV (beta)
      • Integration
  • FAQ iOS
Powered by GitBook
On this page
  • Configurations
  • Mandatory
  • Optional

Was this helpful?

  1. Android
  2. Custom Browser
  3. Integration

CustomBrowser Config

Describes various configuration parameters supported by CustomBrowserConfig.

PreviousIntegrationNextCustomBrowserCallback

Last updated 3 years ago

Was this helpful?

Create an object of CustomBrowserConfig like below.

CustomBrowserConfig customBrowserConfig = new CustomBrowserConfig(merchantKey,txnId);

Configurations

Mandatory

  • PostData - Payment Post Data [Post data being sent to PayU PG] - setPayuPostData(String).

  • PostURL - Payment Post URL [PG url to be precise] -setPostURL(String)

Optional

  • HTMLdata - setHtmlData(String htmlData) (Available since version 7.2.2+)

    • htmlData - HTML string received from PayU web service using Server to Server call.

  • ViewPortEnable - setViewPortWideEnable(viewPortWide);

    • true - set viewport true

    • false - set viewport false

    • default - false

  • ProgressDialogCustomView - setProgressDialogCustomView

    (progressDialogCustomView);

    • progressDialogCustomView- Custom View for Progress Dialog.

  • AutoApprove - setAutoApprove(boolean isAutoApprove);

    • true - OTP will be fetched automatically and approved as well.

    • false - OTP will fetch automatically.

    • default - false

  • Surl/Furl Response Timeout - setMerchantResponseTimeout(int merchantResponseTimeout);

    • merchantResponseTimeout - Surl/Furl loading timeout in milliseconds

  • AutoSelectOTP - setAutoSelectOTP(boolean isAutoSelect)

    • true - OTP option will be selected automatically

    • false - User will select from either password or OTP

    • default - false

  • Merchant SMS permission - For android M only - setMerchantSMSPermission(false);

    • true - shows dialog for permission

    • false - no dialog is shown to the user

    • default - false

  • Review Order - For integration visit here setEnableReviewOrder(CustomBrowserConfig.ENABLE);

    • ENABLE - Enables Review Order

    • DISABLE - Disables Review Order

    • default - DISABLE

  • PackageNameForSpecificApp - Package name of the Intent App that you want to invoke. When you want to invoke any specific Intent App instead of generic intent. You must add dependency for this.

setPackageNameForSpecificApp(<UPI_PACKAGE_ID>)
where UPI_PACKAGE_ID can be any of UPI apps like - 
com.phonepe.app(PhonePe),
com.google.android.apps.nbu.paisa.user(GPay) etc. 
  • DisableIntentSeamlessFailure-

    You can disable the Manual VPA Fallback option from Generic Intent tray from backend as well as from frontend.

setDisableIntentSeamlessFailure(CustomBrowserConfig.DISABLE)
  • Don't clear cookies for some URLs- We clear cookies for the URLs that load on the Custom Browser. If you don't want to clear your webpage cookies, you should provide a list of URLs on which we would not clear the cookies.

setDomainUrlListToUnclear(ArrayList<String>);
  • EnableSslDialog There might be a chance that the bank through an SSL error, we have handled it, we are proceeding the user to the bank page in any SSL error. You can show the user a popup below in case of an SSL error.

To show the popup, you need to set true to enableSslDialog config field.

setEnableSslDialog(Boolean);

In order to disable it from front end, set CustomBrowserConfig.ENABLE to setDisableIntentSeamlessFailure flag. Must include dependency to show the generic Intent Apps.

UPI SDK
UPI SDK