Check Mobile App
Read now
Start a Project

Adyen Payment Gateway In Android

Save

In this blog, we are going to learn about Adyen Payment Gateway In Android. We are following the SDK approach with the latest SDK available on the Adyen console.

Before starting integration first, we need to know what a payment gateway is.

payment gateway is a merchant service provided by an e-commerce application service provider. Which authorizes card or direct payment processing.

For the integration of the payment gateway, we will follow the mentioned steps:

1. Add the Drop-In dependency

In this blog, we are using Adyen Drop-In dependency and its inbuild UI for processing the payment gateway. As the Checkout dependency is deprecated and Drop-In is the latest one. You can use any of the components as per your usage, mentioned on the Adyen console.

2. Initialization of the Adyen SDK

Now, we will initialize the Adyen SDK for processing the payments. There are multiple steps for initializing the payment SDK.

I hope, you have the Adyen merchant or test account for checking the payment. If you did not have it, then please create the Account from the Adyen console. Because we need the Client Key and API authentication details (Username & Password) for further processing

2.1 Fetch the available payments methods

Adyen supports multiple payment methods for processing the payments on its SDK.

You can call the following API from your server or from your application for fetching the available based on your country, device, and payment amount

Or, you can save the response json in your asset file and fetch it for your usage. In this demo, we have done the same.

2.2 Creating Payment Service

Now, we will create the Payment service class which extends the DropInService() class and overrides their methods. In this method, we will receive the response of payment for further process.

2.3 Initilization of SDK

Now, we will initialize the payment SDK. We have used the MainActivity as a result Intent for getting the result in string form from the Adyen Service returns method.

We have used the TEST MODE and its details for verifying the payment flow. You can changes the modes of payment as per the scenerios.

3. Submitting the response For payments

Once the user submits the details, then we will get the response from the Adyen SDK. We need to make a call to Adyen’s Payment API from our server.

Following are the dummy APIs and request that we have used for showing the demonstration of the payment flow. You can get all the APIs and their details in your account section.

NOTE: For better flow, you can host all the Adyen’s APIs on your server and call them accordinlgy & fetch the results in one API call.

NOTE: If you will face any issues with material theme and Adyen theme then you can use the following line of code in your style folder

 

There are different responses that you will receive from Adyen’s APIs. Each and every response have its own significance. You can check them on the Adyen console

Conclusion:

In this blog, you have learned about the Adyen Payment Gateway In Android.

For more information regarding the Adyen Payment Gateway follow the link.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

Great Product, Great Team, and Great Support Service. And if you want to add more features to the product, they can submit any idea that comes to your mind. They really care about their clients and we are really happy and honored to deal with Webkul.

Osama
Talk to Sales

Global

Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home