Skip to content

[Mobile Payments] Handle specific Tap on Mobile errors from the Stripe SDK #8295

@joshheald

Description

@joshheald

Description

In sTAP Away, we're adding support for Tap on Mobile payments using Stripe's SDK. Broadly, the process is the same for connection and payment with a bluetooth reader, however, there are error states specific to Tap on Mobile, some of which we should surface to the user.

Some of these are taken from Apple's ProximityReader.PaymentCardReaderSession, others from Stripe's SDK. In practice, Stripe's SDK errors are the only ones we'll be likely to see. Not all of these need to be shown to the user, it's a list for reference and decision making.

Stripe

Apple

  • readNotAllowedDuringCall
  • nfcDisabled
  • readFromBackgroundError
  • readerSessionNetworkError
  • invalidAmount
  • invalidCurrencyCode
  • paymentCardDeclined

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: mobile paymentsRelated to mobile payments / card present payments / Woo Payments.type: taskAn internally driven task.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions