ApplePayResponse.fromPlatformException constructor

ApplePayResponse.fromPlatformException(
  1. PlatformException exception
)

Implementation

ApplePayResponse.fromPlatformException(PlatformException exception)
    : status =
          exception.code == STATUS_CANCELED ? STATUS_CANCELED : STATUS_ERROR,
      token = null,
      errorMessage = exception.message;