Skip to content

aws-samples/samples-for-payment-cryptography-service

Repository files navigation

AWS Payment Cryptography Samples

This repos contains samples for AWS Payment Cryptography for - key import, P2PE and Pin (set and verify) flows.

Before starting, ensure that the service is available in the region you want to run the samples in.

Flows

Key Import (Pre Requisite)

Before running the sample application, you will need to import the required keys into AWS Cryptography Service. The samples are setup to run based on keys that will get imported thru the key import app. Refer to key import instructions.

After importing the keys, refer to readme to run the samples.

Point-to-point encryption (P2PE)

This is simulated by Payment Terminal Client which connects to Payment Processor Service. Refer to the test data used by the terminal that contains DUKPT variant, track2 data and KSN.

Following diagram illustrates the flow -

P2PE Flow

PIN Flows

This is simulated by Pin Terminal Client. There are 2 flows setup on the client -

Set Pin

In this flow, the ATM uses Pin Encryption Key (PEK) to set the PIN with Issuer

Following diagram illustrates the flow -

Set PIN (PEK)

Set PIN Flow - PEK

Verify Pin

In this flow, the PinTerminal_ISO_Format_0 or PinTerminal_ISO_Format_4 verifies the PIN via Pin Translator which connect to Issuer for verification.

Following diagrams illustrate the flow - Verify PIN Flow - DUKPT

Contributing

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published