company logo

Help center

Go to Forge from Swipe ARAS
InstagramFacebook
All collectionsAdyen APIPosting Encrypted Card Payments to AdyenOverview: Posting Encrypted Card Payments to Adyen

Overview: Posting Encrypted Card Payments to Adyen

This collection covers one specific way to accept card payments through Adyen: building your own card form and encrypting the card details yourself, instead of using Adyen's ready-made hosted fields.

Is this the right path for you?

Adyen offers two ways to collect card details without your server ever touching a raw card number:

  • Adyen's hosted fields (Drop-in / Components). Card number, expiry, and CVC are entered into fields that Adyen hosts inside your page. Adyen documents this as the default approach for most merchants, and it keeps you in the simplest PCI compliance tier.

  • Your own card form, encrypted client-side (what this collection covers). You build the input fields yourself and encrypt the values in the browser before they go anywhere. This gives you full control over the checkout UI, but it also means raw card data passes through your own JavaScript, which puts you in a higher PCI compliance tier than the hosted-fields option.

If you don't have a specific reason to build a custom card form, talk to your SwipeAras contact before choosing this path — Adyen's hosted fields solve the same problem with less compliance overhead. Adyen's own guidance on this trade-off is in their API-only card integration guide.

What you'll need

Four values, all specific to your store:

Value

Where it comes from

API key

Forge → your store → Integration → Adyen Integration Details

Store ID

Same page

Public key

Same page

A JWK (JSON Web Key) version of the Public key

You generate this yourself, only once you move past Postman — see the "custom code" articles below

The first three are values you copy. The fourth is something your own code produces from the Public key — you don't need it to complete the Postman walkthrough in this collection.

How to use this collection

  1. Download the Postman collection — a ready-made set of API requests that let you confirm your values are correct before writing any code: Download from Google Drive

  2. Set up your TEST environment in Postman and get a successful response — see Set up your Adyen TEST environment in Postman.

  3. Move to LIVE when you're ready — see Moving to Adyen LIVE.

  4. Build the encryption step into your own application — see From Postman to your own implementation and the articles after it.

Download Postman Collection

What's in this sub-collection

  • Set up your Adyen TEST environment in Postman — where each value comes from, and how to get a working test response

  • Moving to Adyen LIVE — what changes between TEST and LIVE

  • From Postman to your own implementation — how the pieces map onto real application code

  • What is jose, and why does Adyen's guide use it?

  • Example: converting your Public key into a JWK (TypeScript)

A note on scope

Adyen's own documentation covers the cryptography — what a JWE is, which algorithm to use, how to structure the request. See their Card encryption with JWE guide and the Checkout API /payments reference for that. This collection doesn't repeat any of it — it links to the specific sections you need. What it adds is the part Adyen's docs can't cover: exactly where in Forge each value lives for your store, and how those values fit together in practice.

Did this answer your question?
😞
😐
😁