> For the complete documentation index, see [llms.txt](https://doc.ecomm.api.tietoevry.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ecomm.api.tietoevry.com/e-commerce-payment-gateway/sandbox-guide/self-hosted-checkout-page/card-payment.md).

# Card payment

The Card Payment option in the sandbox simulates the traditional card checkout flow where the user manually enters card details. This demonstrates how EGW handles direct card data entry in a secure and structured way.

{% hint style="info" %}
In sandbox mode, all transactions are mocked, and card data is not processed or sent to any external networks.
{% endhint %}

### Testing Data

* **Cardholder Name:** Any value
* **Card Number:**
  * 5186 0000 0000 0005 – Successful authorization
  * 5186 0000 0000 0013 – Failed authorization
* **Expiry Date:** Any valid future date (e.g., 12/28)
* **CVV:** Any 3-digit number (e.g., 123)

{% hint style="info" %}
All data is simulated. No real authorization takes place, and responses are based on predefined sandbox rules.
{% endhint %}

### How-to

The overall checkout journey for Card Payments follows the same steps as the[ Click-to-Pay flow](https://doc.ecomm.api.tietoevry.com/e-commerce-payment-gateway/sandbox-guide/self-hosted-checkout-page/click-to-pay.md#how-to).

1. The user starts from the Demo Shop, selects a product, adds it to the basket, and proceeds to checkout.&#x20;
2. The only difference is that, on the Gateway Hosted Checkout Page, the user must select the “ Card” option instead of Click-to-Pay.
3. After choosing the method, the user enters the test card details manually and completes the simulated transaction.

<figure><img src="https://1349856663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuxLHJOqJIapfeJ1Ei4Hr%2Fuploads%2FNCSZ28PiIaiwLDbY0qN6%2Fcard.gif?alt=media&amp;token=7ef321ee-28ce-4c93-820a-5ea221417a38" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.ecomm.api.tietoevry.com/e-commerce-payment-gateway/sandbox-guide/self-hosted-checkout-page/card-payment.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
