Strategy #1: Start BrowserFragment using payment URL

Before you start the BrowserFragment, please make sure you call the following function from the Checkout Activity:

JuspayBrowserFragment.openJuspayConnection();

If your payment URL is HTTP GET endpoint, then use the below.

Bundle args = new Bundle();
args.putString("merchantId", merchantId);
args.putString("orderId", orderId));
args.putString("url", url);
args.putString("amount", amount);
args.putString("customerId", customerId);
args.putString("transactionId", transactionId);

browserFragment.setArguments(args);

Should you need to POST the data to a URL, you can pass the HTTP payload in another parameter and we will initialize the session with HTTP POST. Example:

Bundle args = new Bundle();
args.putString("merchantId", merchantId);
args.putString("orderId", orderId));
args.putString("url", url);
args.putString("postData", postData);
args.putString("amount", amount);
args.putString("customerId", customerId);
args.putString("transactionId", transactionId);

browserFragment.setArguments(args);

results matching ""

    No results matching ""