Paybutton Payment Gateway In Android


In this blog, we are going to learn about Paybutton Payment Gateway In Android. We are following the SDK approach with the latest SDK available on the Paybutton 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 dependency in Gradle

In this blog, we are using PayButton SDK and its inbuild UI for processing the payment gateway.

You can use any of the components as per your usage, mentioned on the Git Link.

2. Initialization of the Adyen SDK

Before creating the transactions, we will initialize the PayButton SDK for processing the payments. There are multiple steps for initializing the payment SDK.

We need to just pass some parameters to the PayButton class instance:-
1-Merchant id.
2-Terminal id.
3-Payment amount.
4-Currency code [Optional].
5-merchant secure hash.
6-transaction Reference Number.

We have added the dummy data, but you can add the data as per the data available on the PayButton Console.

After initializing the SDK, we can transact as per our needs.

3. Create Transactions

Now, we will create transactions and perform payment processing from SDK.

Now, we will use the cardTransaction object for fetching the data regarding the payment response, after getting the successful result.

You can use the response from SDK for maintaining the status of payment on the Admin end. Or you can use it as per your need.


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

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

. . .

Leave a Comment

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

Be the first to comment.


We've bought a Shopware Extension which is a hybrid App, which we can now offer in the Google Play Store and the IOS App Store. I'am still impressed how fast and how sharp the support team leads us through every process of the App-Store clarification. Very fast and useful response.

Markus Walter

Markus Walter

Founder, Das Apartment Living

Talk to Sales


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