Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

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



Wednesday, April 29, 2020

How to change json to string in Android App + Java

GetData is a retrofit configuration

UpdateUserProfile is model
getUser is getter of another model
Personame is an edit box
 
GetData service = RetrofitClient.getClient().create(GetData.class);
Call<UpdateUserProfile> callProfile= service.fetchUserData();
callProfile.enqueue(new Callback<UpdateUserProfile>() 
{    @Override    public void onResponse(Call<UpdateUserProfile> call,  
Response<UpdateUserProfile> response) {       
 String updateUserProfile= response.body().getUser().get(0).getId();     
         personName.setText(response.body().getUser().get(0).getName());         
     personDOB.setText(response.body().getUser().get(0).getDob());           
   personEmail.setText(response.body().getUser().get(0).getEmail());        
      personMobile.setText(response.body().getUser().get(0).getMobile_no());       
Picasso.with(ProfileActivity.this)
.load(response.body().getUser().get(0).getImage()).into();
    }


Outlook Email Configuration Service – Get Seamless Email Setup!

  Outlook Email Configuration Service – Get Seamless Email Setup! Setting up business emails (IMAP, POP3, SMTP) Troubleshooting email send...

Clock