iOS Mobile Payments SDK: verifying cancellation when no payment ID exists

We’re testing iOS Mobile Payments SDK 2.7.0 in Sandbox with online-only processing, autocomplete=true, acceptPartialAuthorization=false, and no added tip or surcharge.

Closing the SDK prompt before card entry can invoke didCancel without a payment ID. Our backend retains the uncertain payment reservation to prevent duplicate charges.

Please clarify the documented, server-verifiable procedure for establishing that such an attempt cannot create a payment later:

  1. Does SDK cancellation establish actual financial cancellation, or only end the client interaction?
  2. CancelPaymentByIdempotencyKey returns success without action when no payment exists. Does that prevent a delayed or already-transmitted request from creating a payment afterward?
  3. SDK-generated idempotency keys can change within an attempt. Is the final getIdempotencyKey sufficient to reconcile every potentially consequential request? What does a nil result establish?
  4. How should we recover after app/device restart or loss of the callback/key, retaining the correct merchant/application/location/attempt binding?
  5. What guarantees apply specifically to online-only, autocomplete-enabled payments when cancellation races with completion?

Please cite the API/SDK contract or escalate to the SDK/payments team. If no authoritative guarantee exists for the no-record case, please confirm that limitation explicitly.

We will not release reservations based on an empty search, elapsed time, a client callback, or successful no-op cancellation. No live payments or refunds are involved. Physical-reader and Tap to Pay qualification are separate.

Welcome to the Developer Forum!

  1. didCancel reports cancellation of the SDK flow, but is not a server-verifiable financial cancellation receipt. The cancellation callback’s payment can be constructed locally without a payment ID, so the missing ID does not establish server-side absence.

  2. A successful no-op CancelPaymentByIdempotencyKey response should not be treated as preventing a later-arriving create request. Please note that no action is taken when no payment is found.

  3. The guide recommends the final key for recovery. Please note that it does not explicitly guarantee exhaustive resolution of earlier keys. nil means no key is available from that lookup.

  4. Persist the environment, seller/application/location, attempt/reference IDs, and available keys/payment IDs. Retrieve the unresolved key before starting another attempt; the iOS lookup is not an attempt history. Matching existing payments by referenceID can help, but an empty listing does not establish finality.

  5. Cancellation availability depends on the payment state. For instance, ProcessingCreatePayment is not cancelable and calling cancelPayment() there returns false. SDK autocomplete also differs from server autocomplete for EMV flows.

Hope this helps!