Contents

linkAccount(using:)

Presents a sheet for the merchant to accept Tap to Pay on iPhone’s Terms and Conditions on a device.

Declaration

func linkAccount(using token: PaymentCardReader.Token) async throws

Parameters

  • token:

    The token from your payment service provider. This token contains the merchant identifier.

Mentioned in

Discussion

To use Tap to Pay on iPhone, your participating payment service provider must provide the merchant using your app with a secure token. This token contains an unique identifier for each merchant. This merchant must accept Tap to Pay on iPhone’s Terms and Conditions. After a merchant accepts the Terms and Conditions for their specific merchant identifier on one device, they don’t need to accept it again on additional devices that use the same identifier.

Use the isAccountLinked(using:) method to confirm calling linkAccount(using:) is required.

If the merchant hasn’t accepted the Terms and Conditions, calling prepare(using:) throws PaymentCardReaderError.accountNotLinked.

If the merchant has already accepted the Terms and Conditions, calling this method throws PaymentCardReaderError.accountAlreadyLinked.

See Also

Displaying the Tap to Pay on iPhone’s terms and conditions