Saturday, November 29, 2014

CCAvanue payment Integration For Android (With Sample Project)

Hi there!
It's been days that I have posted anything here! But this made me write this post
I was going through Payment Integration in India for mobile apps, specially for android. There are some famous Integration method available such as Paypal, Google Wallet. But These two have problems in India since they are not versatile payment method for every Bank and Indian currency.

At last I found CCAvanue which seems to me a better payment getway option in India. They have cool dashboard and a very effective customer service which is avail 24*7.

CCAvanue has two type of integration for android application, one is seemless and other one is non-seemless. Seemless provides you option to save card information to your database but this requires special PCI Certificate or SAQ based on no hits.

On Request from CCAvanue they provide you the mobile integration kit which carry Android and iOS Project with  two JSP file (One is getRSA.jsp and other one is ccavResponseHandler.jsp) which needs to be host on your register (register with CCAvanue ) website(You don't have to change anything in JSP file).  After hosting these two files you have two url which you will be needing in app.

Since they provide Seemless Integration which is also avail Here. I decided to provide the non-seemless Integration kit which is having three activity  first will take input from user second one will open the webView where user will do the transaction and last one which will show the status whether transaction was successful or failure. Non-seemless Integration kit is available Here, You can download (This is basically reduced code ). You have to change the merchant ID and three URL (Cancel URL, Redirect URL and RSA Url) and you are done. I have commented on code where you need to change things. So,  app flow will be like this

Enter Information ==> Click on Pay Button ==> Open the webView ==> Enter info ==> pay ==> StatusActivity

If Any further query you have, please comment.
Thanks




No comments:

Post a Comment