> For the complete documentation index, see [llms.txt](https://developer.magtek.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.magtek.com/services/magensa/decrypt-and-forward.md).

# Decrypt & Forward

**Magensa Decrypt & Forward (DaF)** is a PCI-DSS-certified cloud gateway that acts as a secure "wrapper": it decrypts data captured by a MagTek MagneSafe reader, injects the decrypted card fields into a payload of your choosing, and forwards the request to any third-party endpoint on your behalf — even one with no decryption service of its own. Built on the MagneSafe Security Architecture with L3-certified hardware, TDEA/AES encryption, and DUKPT key management, it handles every major payment type — magstripe, EMV contact and contactless, NFC wallets like Apple Pay and Google Pay, QR codes, gift cards, and more — and is certified with the major US processors, giving ISVs and integrators a single integration point that speeds time to market and shrinks PCI scope. Use the references below to explore the DaF API and related payment operations, grab sample code from GitHub, or open the support hub for manuals, brochures, developer guides, and videos.

### Decrypt & Forward APIs

| **API Section**                                                                                                  | **Description**                                                                                                                                                                                                                                                                                                                             |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [<mark style="color:red;">**Mobile Payments (Apple Pay)**</mark>](https://apple-mobile.developer.magtek.com/)    | Setup and integration guide for accepting Apple Pay both in-app (iOS) and in-web (via TokenExchange Connect), including merchant-ID registration and domain verification.                                                                                                                                                                   |
| [<mark style="color:red;">**Mobile Payments (Google Pay)**</mark> ](https://google-mobile.developer.magtek.com/) | Setup and integration guide for accepting Google Pay in a mobile app, from business-profile setup through submitting the Google Pay token (`ProcessGooglePay`).                                                                                                                                                                             |
| [<mark style="color:red;">**Payment Request**</mark>](https://payment-request.developer.magtek.com/)             | Create a customized payment request that returns a payment URL, QR code, and a WebSocket token for real-time status; customers pay through an MPPG hosted page by manual entry or digital wallet.                                                                                                                                           |
| [<mark style="color:red;">**Decrypt and Forward (DAF)**</mark>](https://daf.developer.magtek.com/)               | The core Decrypt & Forward 4.0 web service: send encrypted MagneSafe data plus a target payload (SOAP or JSON), and Magensa decrypts it, injects card fields via replacement variables (e.g., `{CCNum}`), and forwards the request to any third-party service — processors, tokenization, gift cards, and more. v4.0 adds batched requests. |

### **Decrypt & Forward GitHub** <a href="#hid-demo" id="hid-demo"></a>

| **API Section**                                                                                            | **Description**                                                                                                  |
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| [<mark style="color:red;">**Magensa Decrypt and Forward GitHub**</mark>](https://github.com/Magensa/DAFv4) | GitHub makes it easier to access sample code for Decrypt & Forward v4, try the Magensa DaF Playground, and more. |

### Decrypt & Forward Support Page

| **API Section**                                                                                                             | **Description**                                                                                                                                                                                      |
| --------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [<mark style="color:red;">**Support Page**</mark>](https://www.magtek.com/support/magensa-decrypt-and-forward?tab=software) | The Magensa Decrypt & Forward support hub — programmer's manuals (including the DaF v4.0 Web Services API guide), product brochures and catalog, developer guides, an FAQ, and instructional videos. |

### Need More Help

{% hint style="info" %}
**Need Help?**

For additional support, please contact MagTek Support:

**Technical Support:**

* 📧 **Email:** [support@magtek.com](mailto:support@magtek.com?subject=Support%20Request)
* 📞 **Phone:** 1-562-546-6800 (US)
* 🕐 **Hours:** Monday-Friday, 5:30 AM - 5:00 PM PST

**Online Resources:**

* 🌐 **Support Portal:** developer.magtek.com

**Documentation Feedback:**

Help us improve this documentation! [feedback@magtek.com](mailto:feedback@magtek.com?subject=Feedback)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developer.magtek.com/services/magensa/decrypt-and-forward.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
