Monday, July 20, 2020

Steps To Integrate Bankonnect Co Payment Gateway (ICICI Bank) in Android(Mobile) App

Steps To Integrate Bankonnect Co Payment Gateway (ICICI Bank) in Android(Mobile) App


Steps To Integrate Bankonnect Co Payment Gateway (ICICI Bank) in Android(Mobile) App

Bank open is an new system to collect payment via android app. Following are the steps:


PG Sandbox APIs for Bankonnect PG.

Step 1:  After Signup, the merchant can go on Bankonnect.co and generate the Sandbox Keys from the tab - Integration - Payment Gateways


Step 2: Go to docs.bankopen.com and  For generating the Request Signature, please refer to the documentation, https://docs.bankopen.com/docs/authentication,  "Authentication" and follow the steps for "Authorization header" which will be required for creating Payment token and once completed  go to "Payment Gateway" click on "Layer" and then click on “Layer Checkout” for the integration.  The Authorization header would be 'bearer ACCESS_KEY:REQUEST SIGNATURE'.  



Step 3: Once you click on Layer Checkout - you can start integrating "Layer.js" to creating the payment token, please refer to the documentation, https://docs.bankopen.com/reference#generate-token. The sandbox API for generating the payment token is, https://sandbox-icp-api.bankopen.co/api/payment_token. You can also use POSTMAN for testing, the POSTMAN collection for payment token creation is, https://www.getpostman.com/collections/14fd333897d90c5ce3e1,  You don't have to use the UDF parameter when generating the request signature. 


Step 4: Once the integration is completed, the merchant can replace the live Key with Sandbox and replace the production URL instead of Sandbox URL. Refer to  For getting the sandbox API keys and credentials and Live API keys.


Step 5: Before using the live keys, the merchant has to click on “Activate Payment Gateway” from the Payment Gateway inside Integration section.

Android code

@Override
      public void onTransactionCompleted(final TransactionDetails transactionDetails) {
          runOnUiThread(new Runnable() {
              @Override
              public void run() {
                  String response = "On Transaction Completed:\n" +
                          "\n Payment Id: " + transactionDetails.paymentId +
                          "\n Payment Token Id: " + transactionDetails.paymentTokenId +
                          "\n Status: " + transactionDetails.status;

                  mTextViewResponseText.setText(response);
              }
          });
      }

      @Override
      public void onError(final String s) {
          runOnUiThread(new Runnable() {
              @Override
              public void run() {
                  mTextViewResponseText.setText(String.format("onError: \n%s", s));
              }
          });
      }

Remove Listener -

To remove listeners, you can invoke detachListener() after the transaction is completed or you haven’t to do with payment callbacks.

openPayment.detachListener()

conclusion:

Follow above steps to integrate in mobile app. If you are facing any issue please contact


For Integration kindly mail: mahendra@primeprogrammer.com

Also Provide

GST billing software

Stock Management software

Mobile application development

Payment Gateway Integration(core PHP, Laravel and Python)

Prime Programmer


    8795202855

Prime Programmer



1 comment:

  1. “I jumped on an opportunity to purchase a rental property over the 4th of  weekend. Mr Lee was quick to respond and since this was my first time getting a loan to buy a rental property , he was able to help me walk through the loan process. It was a great experience working with a good and kind loan lender Mr Lee. I hopefully know very well if you are outta looking for loan to purchase a property or funding business purpose then Mr Lee will be able to help you with such process here his details WhatsApp +1-989-394-3740.   /  247officedept@gmail.com  !”  

    ReplyDelete

Front-End Custom Development

  Front-End Custom Development Our front-end functional components are tailor-made, crafted from the ground up to provide not only exception...

Clock