Adyen CSE

Adyen CSE for Android

License

License

GroupId

GroupId

com.adyen.cse
ArtifactId

ArtifactId

adyen-cse
Last Version

Last Version

1.0.5
Release Date

Release Date

Type

Type

aar
Description

Description

Adyen CSE
Adyen CSE for Android
Project URL

Project URL

https://github.com/Adyen/adyen-cse-android
Source Code Management

Source Code Management

https://github.com/Adyen/adyen-cse-android

Download adyen-cse

How to add to project

<!-- https://jarcasting.com/artifacts/com.adyen.cse/adyen-cse/ -->
<dependency>
    <groupId>com.adyen.cse</groupId>
    <artifactId>adyen-cse</artifactId>
    <version>1.0.5</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.adyen.cse/adyen-cse/
implementation 'com.adyen.cse:adyen-cse:1.0.5'
// https://jarcasting.com/artifacts/com.adyen.cse/adyen-cse/
implementation ("com.adyen.cse:adyen-cse:1.0.5")
'com.adyen.cse:adyen-cse:aar:1.0.5'
<dependency org="com.adyen.cse" name="adyen-cse" rev="1.0.5">
  <artifact name="adyen-cse" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.adyen.cse', module='adyen-cse', version='1.0.5')
)
libraryDependencies += "com.adyen.cse" % "adyen-cse" % "1.0.5"
[com.adyen.cse/adyen-cse "1.0.5"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Adyen CSE for Android

This repository contains Adyen's Client Side Encryption (CSE) library for Android. With CSE card data is encrypted within the client, in this case the Android device, before you submit it via your own server to the Adyen API. By using CSE you reduce your scope of PCI compliance, because no raw card data travels through your server. This repository can be leveraged as a starting point to integrate Adyen's payment functionality fully in-app.

Requirements

The AdyenCSE-Android library is written in Java and is compatible with apps supporting Android 2.3 and up. Looking for the iOS or web equivalent? We have the CSE library also available written in Objective-C (adyen-cse-ios) and JavaScript (adyen-cse-web).

All our CSE libraries rely on you setting up your own server for communicating with the Adyen API. By using a server you ensure that API authentication credentials never get exposed. Please note that you need to have signed up for an account at Adyen before you can send requests to the Adyen API.

Example

For your convenience we've included an example app in this repository that can be used as a reference while integrating.

To run the example project, clone the repo and run it from your IDE.

Installation

AdyenCSE is available through a gradle task. To install it, simply add the following line in your dependencies.

compile 'com.adyen.cse:adyen-cse:1.0.5'

Usage

//	Set public key
String publicKey = @"10001|B243E873CB9220BAFE71...";

//	Create card object
Card card = new Card.Builder()
                    .setHolderName("John A...")
                    .setCvc("737")
                    .setExpiryMonth("08")
                    .setExpiryYear("2018")
                    .setGenerationTime(new Date())
                    .setNumber("55551...")
                    .build();

//	Encrypt card data
String encryptedCard = card.serialize(publicKey);

Please note that you'll have to URL encode the encryptedCard before sending it from the app to your server, as the encryptedCard which is generated by the CSE library should be exactly the same as you send it from the server to the Adyen API.

What's next?

After having developed your app, set up the merchant server and succesfully performed your first test payment it's time to complete your integration by registering for Aydyen's notification service. After each payment initiation we push a notification to your server with the authorisation reponse, so you can be sure whether you can start delivering your goods or services. To subscribe to and integrate with the notification service, please check our notification manual.

Succesfully subscribed to and integrated with our notification service? Congratulations, now it's time to start accepting payments for real! Assuming that you've been using your Adyen test account, and the Adyen API's test endpoints, you can now make use of your Adyen live account and Adyen API's live endpoints. Questions? Contact your account manager or send your inquery to [email protected].

License

AdyenCSE is available under the MIT license. See the LICENSE file for more info.

com.adyen.cse

Adyen

Versions

Version
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1