---
title: "Save card token with iframe"
method: GET
path: "/pay/v3/saveCard"
tags: ["Ecommerce"]
---

# Save card token with iframe

`GET /pay/v3/saveCard`

Returns an iframe that can be used to securely save a token for a credit or debit card. You can later use this card token to run a card transaction using the [Run card transaction with iframe](https://docs.nexiopay.com/reference/runcardtransactioniframe) or [Run card transaction](https://docs.nexiopay.com/reference/runcardtransaction) endpoint.

Card tokens can be used to process transactions through any MID on your account. They are not restricted to a specific merchant account or currency.

For instructions on how to implement this endpoint, see the recipes (listed below) or see [Creating a save card page with the iframe](https://docs.nexiopay.com/docs/creating-a-save-card-page-with-the-iframe). 

For a tutorial about running a transaction with the saved card token, see the [Creating a card checkout page with the iframe](https://docs.nexiopay.com/docs/creating-a-card-checkout-page-with-the-iframe), [Creating a card checkout page with your own form](https://docs.nexiopay.com/docs/creating-a-card-checkout-page-with-your-own-form), or [Running a card transaction with the API](https://docs.nexiopay.com/docs/running-a-card-transaction-with-the-api) topic.

<!-- theme: warning -->
> ⚠️ Try It
> 
> To use the Try It feature for this endpoint, you must first request a [one-time-use token](https://docs.nexiopay.com/reference/createonetimeusetoken). The system uses the processing and UI options sent in that request for the display and functionality of the iframe.


<div style="display:none;">

## Request parameters
- shouldReturnHtml
- token

## Response parameters
- HTML form

</div>

## Query parameters

- `token` string, required
- `shouldReturnHtml` string

## Response `200`

Success

- string

## Other responses

- `401` — Unauthorized. For help with this error and other error codes, see [Common errors](https://docs.nexiopay.com/docs/common-errors) in the Guides area.

---

[API](https://skmtc.dev/nexiopay/apis/payments-api-reference.md) · [All operations](https://skmtc.dev/nexiopay/apis/payments-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nexiopay/payments-api-reference/revisions/b414b73979e5/schema)
