<!--
{
  "availability" : [
    "iOS: 15.4.0 -",
    "iPadOS: 15.4.0 -",
    "macCatalyst: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ProximityReader",
  "identifier" : "/documentation/ProximityReader/PaymentCardReader/Token",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "ProximityReader"
    ],
    "preciseIdentifier" : "s:15ProximityReader011PaymentCardB0C5TokenV"
  },
  "title" : "PaymentCardReader.Token"
}
-->

# PaymentCardReader.Token

A secure token that you receive from your participating payment service provider.

```
struct Token
```

## Overview

You must create a secure token to use Tap to Pay on iPhone. Your payment
service provider supplies the string you use to create this token. Create
your token and pass it to the [`prepare(using:)`](/documentation/ProximityReader/PaymentCardReader/prepare(using:))
method to configure the current device to read cards.

## Topics

### Creating a token

[`init(rawValue: String)`](/documentation/ProximityReader/PaymentCardReader/Token/init(rawValue:))

Creates a token with the string your payment service provider gave you.

### Getting the token value

[`let rawValue: String`](/documentation/ProximityReader/PaymentCardReader/Token/rawValue)

The raw token string from your payment service provider.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)