Skip to content

how to handle the status requireActivation #45

Description

@wcastand

Hi, i was just wondering if the status requireActivation can be dealt with by just showing the AddButton and handling it as i always do or i need a specific function?

in the custom package i had for apple pay, we had a specific function to call or that use case.

      Function("requireActivation") { (lastDigits: String) -> String? in
          for pass in PKPassLibrary().passes(of: .secureElement) {
              if pass.secureElementPass?.primaryAccountNumberSuffix == lastDigits && pass.secureElementPass?.passActivationState == .requiresActivation {
                  return pass.secureElementPass?.passURL?.absoluteString ?? nil
              }
          }
          return nil
      }

it was giving the link to remove the pass in wallet app to start over from our app.
We disabled the possibility to activate by other means than from the app mostly to prevent scammer. So we need to handle the case where people start from the wallet app either by making them remove the pass and go through the app or a way to finish the onboarding process.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions