Skip to content

hoaknoppix/ApplePayUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApplePayUtils

alt textLanguage grade: JavaTotal alertscodecov

This is the java util to decrypt apple payload data from iOS.

Usage

With the ephemralKeyString and the encrypted data from ios app response json, these following static methods in AppleUtils.java can be used to decrypt encrypted data as byte[], decrypted JSON String or parse as any object from decrypted JSON:

byte[] decryptAsBytes(String ephemeralKeyString, String privateKeyString, String certificateString, String data);

String decryptAsString(String ephemeralKeyString, String privateKeyString, String certificateString, String data);

T decryptAsObjectFromJSON(Class<T> clazz, String ephemeralKeyString, String privateKeyString, String certificateString, String data);

See ApplePayUtilsTest.java

For iOS app

See Apple Pay Demo

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages