Skip to content

Android Review Order

AshishPayU edited this page Feb 22, 2017 · 3 revisions

Review Order

Review order is a feature of CB by which merchant can display an ongoing transaction’s information to the user on bank page. This will help the user to verify transaction related critical information while making a payment, and prevents users from pressing back button, cancelling the transaction, just to review or re-check their order details.

Prerequisite:

To integrate Review Order (RO), merchant first need to integrate CB via Simplified integration in their app. Documentation for which can be found here.

Integration options

You have two options by which transaction information can be displayed using RO:

  1. With Default PayU’s UI: You pass the data to be displayed. We create a view with your information. We control the UI and places at which info should be displayed.
  2. With Custom UI: You pass us an object of view(layout). You design the view and fill information in it. We display the view as is in the Review Order screen of CB.

Detailed integration steps

  1. With PayU’s UI:
  2. Make object of "ReviewOrderBundle"

    ReviewOrderBundle reviewOrderBundle = new ReviewOrderBundle();

    Add payment details to bundle in form of key value pair

    reviewOrderBundle.addOrderDetails("Amount","10.00");
    reviewOrderBundle.addOrderDetails("Mobile","1111111111");
    reviewOrderBundle.addOrderDetails("Email","[email protected]");

    setReviewOrderDefaultViewData : Set bundle data to Review Order "setReviewOrderDefaultViewData" method

    customBrowserConfig.setReviewOrderDefaultViewData(reviewOrderBundle);
  3. With Custom UI:
  4. Create a layout as per your design which contain the data you want to display. Use mention below method to set the layout information.

    setReviewOrderCustomView: Set your custom view to review order example :

    customBrowserConfig.setReviewOrderCustomView(R.layout.review_custom_layout);

    Customizations

    setEnableReviewOrder - Enable review order

    Input params are :

    CustomBrowserConfig.ENABLE CustomBrowserConfig.DISABLE

    example :

    customBrowserConfig.setEnableReviewOrder(CustomBrowserConfig.ENABLE);

    Note: Default value is CustomBrowserConfig.DISABLE

    setReviewOrderButtonText : To change review order button Text name example:

    customBrowserConfig.setReviewOrderButtonText(“test1234”);

    Note: Maximum length of text is 16 characters

    Please write at [email protected] for further queries.