Contents

readPaymentCard(_:)

Presents a sheet to read a contactless payment card for a purchase or a refund, and returns the encrypted card data.

Declaration

func readPaymentCard(_ request: PaymentCardTransactionRequest) async throws -> PaymentCardReadResult

Parameters

  • request:

    The transaction object you provide with the payment amount and currency details.

Return Value

A PaymentCardReadResult if the read operation was successful.

Discussion

Call this method as the first step in a financial transaction involving Tap to Pay with iPhone. This method displays a system-provided sheet with instructions on what the person needs to do. This UI remains onscreen until the system reads the person’s card, you cancel the operation, or an error occurs. After the read operation concludes successfully, deliver the returned card information to your payment service provider.

See Also

Reading a payment card