All the notifications which will appear during a SurePay transaction can be customised as per the merchant’s needs. You can customise the icon, the header, sub-header and the message body of all the notifications which appear.
Better network Identified: This notification is fired when a better network is identified by SurePay. Use below method to customise notification when a better network is identified.Default value is Internet Restored.
No network found after timeout : This notification is fired when the threshold value until which SurePay looks for a good network is over and the user cannot resume the transaction from that point. Use below mentioned methods to customise notification when threshold value is elapsed.
customBrowserConfig.setSurePayNotificationPoorNetWorkTitle();//Default Value is “No Internet Found”
customBrowserConfig.setSurePayNotificationPoorNetWorkBody();//Default value is “We could not detect internet on your device”
Notification for Success transaction : This notification is fired when bank confirms the status of the transaction when it is dropped in the backward leg. Use below mentioned methods to customise notification for success transaction.
customBrowserConfig.setSurePayNotificationTransactionVerifiedHeader();//Default value is "Transaction Verified"
customBrowserConfig.setSurePayNotificationTransactionVerifiedBody();//Default value is "The bank has verified this transaction and we are good to go.”
Notification for unknown Transaction : This notification is fired when the bank cannot confirm the status of the transaction dropped in the backward leg at that given point of time. Use below mentioned methods to customise notification for unknown transaction.
Even after following the steps mentioned above, if Sure pay is not working - make sure that any Custom webviewclient is not set or is set to a class that must extends PayUSurePayWebViewClient.
It is important for SurePay to work correctly that you set PG URL and POST data in respective methods. If you are not hitting the PG from app and the traffic is being route through your web server, please provide the corresponding url and post data in the methods mentioned above.
MerchantCheckoutActivity is an important configuration to set. This will help in recovering transactions even if the user has killed CB.
Settings on Admin Panel Values of flags that should be set on merchant panel for SurePay (Please contact your Key account manager to get this done.)