r/pcicompliance • • Nov 03 '26

Anyone using AWS for payment tokenization across multiple acquirers?

Hey everyone,

For those working with online payments and multiple acquirers, are you building your own tokenization system?

I'm exploring whether we can build one using AWS services only, such as KMS, CloudHSM, or AWS Payment Cryptography.

A few questions:

  • Has anyone used KMS for payment tokenization?
  • Would CloudHSM or Payment Cryptography be a better fit? can I build an online payment just for the card tokenization without using CloudHSM or Payment Cryptography service?

Would love to hear about your experiences and lessons learned. Or any compliance risks with using KMS
do you suggest any open-source project that I can take a look at ?

3 Upvotes

15 comments sorted by

2

u/yajkky_cheung Nov 04 '26

We are using KMS in a payment environment. KMS isn’t tokenization. It holds and protects keys. The token vault is still yours: you encrypt the PAN, store the ciphertext, and give the merchant back a UUID or token.

That can work. The QSA’s point is the one that matters though. If someone can call KMS Decrypt and read the ciphertext, they can get the PAN. The app, database, backups, logs, IAM policies, and key policies are still in PCI scope.

KMS is fine for PAN encryption. If you’re doing PIN blocks, CVV, or other payment crypto, use Payment Cryptography or a proper HSM. CloudHSM is more control, but also more work.

For multiple acquirers, check whether the token is actually portable. A proprietary token usually isn’t accepted by another acquirer unless you detokenize first. Scheme network tokens are a different story.

I wouldn’t pick an open-source project just because it says tokenization. The vault design and access controls matter more than the code.

1

u/mdarmousa Nov 05 '26

Thanks 🙏
Can I hold the cvv temporarily until the payment is completed?
Do you have any good open source projects that I can learn from ?

1

u/yajkky_cheung Nov 05 '26

No. CVV is sensitive authentication data under PCI DSS, and KMS doesn’t make storing it allowed.

1

u/OCDCompletist Nov 06 '26

I thought SAD can be temporarily stored prior to authorization per PCI FAQ 1154. It can also be stored if the entity is an issuer or provides issuing services but it doesn’t seem this is the case in OP’s scenario. Of course, in the event that SAD is stored even temporarily, it would still need to follow the encryption (3.3.x) and key management (3.6, 3.7) requirements.

1

u/yajkky_cheung Nov 06 '26

Fair correction. I was talking about after authorization. FAQ 1154 doesn’t set a pre-auth storage limit, but card brands can ban it outright, and the issuer exception doesn’t apply here.I still wouldn’t build a CVV store. Even brief storage has to meet 3.3.x and key management 3.6/3.7.

2

u/trebor_indy Nov 04 '26

Why not just use a tokenization service like TokenEx/Ixopay?

1

u/mdarmousa Nov 05 '26

Is it open source? I wanna build my own as I have many cases to build on top of it

1

u/Token_Paul Nov 06 '26

IXOPAY is not open-source, it's an enterprise level payment orchestration platform, but, you can build custom logic, features, and business use cases on top of it, it's called IXO One.

Source: I work for IXOPAY.

1

u/Token_Paul Nov 06 '26 edited Nov 06 '26

thank you for the mention (I work there)

1

u/SweBot Nov 03 '26

We did it at my previous company. We stored PAN encrypted by KMS. We were a Level 1 PCI DSS payment provider.

1

u/mdarmousa Nov 05 '26

Did you have any 3DS server?
Where you also storing cvv ?

1

u/SweBot Nov 05 '26

Yes we had 3Ds, and of course we did not store cvv, that’s strictly not allowed.

2

u/mynam3isn3o Nov 03 '26

How is that tokenization?

1

u/SweBot Nov 03 '26

You store the PAN, and use a UUID instead for communication to merchants

1

u/bij0yy Nov 03 '26

As a QSA, I've seen many of my customers using AWS KMS