Quickly integrate eWAY payments into your Android app with this SDK! This SDK provides the following functions:
- Encrypt card details for passing through the merchant's servers to eWAY
- Complete a payment on a user's Android device
- Translate response messages to user friendly text
Check out the eWAY Android SDK Getting Started Guide and the example projects for details on how to integrate eWAY with your app.
Sign up with eWAY at:
- Australia: https://www.eway.com.au/
- New Zealand: https://eway.io/nz/
- UK: https://eway.io/uk/
- Hong Kong: https://eway.io/hk/
- Malaysia: https://eway.io/my/
- Singapore: https://eway.io/sg/
For testing, get a free eWAY Partner account: https://www.eway.com.au/developers
The eWAY Android SDK requires a minimum Android SDK version 17
This SDK also supports ReactiveX, which requires rxandroid or rxjava
Installing eWAY Android SDK is quick and easy:
Add the maven repository to your project's build gradle file under all projects:
repositories {
mavenCentral()
}
Then add the dependency to the dependencies section of app’s build.gradle
:
implementation 'com.ewaypayments:android-sdk:2.0.0'
Note : Starting with version 2.0.0, we changed groupId from com.eway.payment
to com.ewaypayments
, if you are using 2.0.0 and later version in your project, please modify the package reference in your project by yourself.
For the a complete guide to using the eWAY Android SDK, check out the Getting Started guide along with the example projects.
Example projects are included in the eWAY Android SDK GitHub repository to demonstrate the available functions. There are three projects to demonstrate different implementations of the SDK; synchronous, asynchronous and rxjava. To view and use an example;
-
Clone the repository to your development machine
git clone https://github.com/eWAYPayment/eway-rapid-android.git
-
Open the project in Android Studio and let Gradle sync.
-
Select a sample in Android Studio - optional: update the
PublicAPIKey
in the SampleMainActivity file to the one in your Sandbox. -
Hit the run button to view the sample in action.
The MIT License (MIT). Please see License File for more information.