Configurations
Describes various configuration parameters supported by CustomBrowserConfig.
Create an object of CustomBrowserConfig similar to the following code snippet:
CustomBrowserConfig customBrowserConfig = new CustomBrowserConfig(merchantKey,txnId);
Mandatory configuration
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 configuration
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 truefalse
β set viewport falsedefault
β falseProgressDialogCustomView
β 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 millisecondsAutoSelectOTP
β setAutoSelectOTP(booleanisAutoSelect
)true
β OTP option will be selected automaticallyfalse
β User will select from either password or OTPdefault
β falseMerchant SMS permission
β For Android M only β setMerchantSMSPermission(false);true
β shows the dialog for permissionfalse
β no dialog is shown to the userdefault
β falsePackageNameForSpecificApp
β 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 UPI SDK dependency for this. whereUPI_PACKAGE_ID
can be any of UPI apps likecom.phonepe.app(PhonePe)
,com.google.android.apps.nbu.paisa.user(GPay)
, etc.
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 the Generic Intent tray from the backend as well as from the front-end. To disable it from the front-end, configure CustomBrowserConfig. ENABLE tosetDisableIntentSeamlessFailure
flag. You must include UPI SDK dependency to show the generic Intent Apps. For more information on how to include UPI SDK, refer to integration steps for Android UPI SDK.
setDisableIntentSeamlessFailure(CustomBrowserConfig.DISABLE)
Remember
Do not 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, PayU will redirect the user to the bank page in any SSL error. You can show the user the following popup page in case of an SSL error.
To show the popup message, you need to set true for the enableSslDialog config field:
setEnableSslDialog(Boolean);
Updated 12 months ago