Skip to content

Not all payments in AdyenCheckout sessions onComplete are/will be completed #896

@johanehinger

Description

@johanehinger

Adyen Sessions onComplete will sometimes have payments with a result code other then Authorised.

For example the Swish payment method will sometimes trigger the onComplete with the result code Received. This is a intermediate result code and could end up not being a successful payment.

      <AdyenCheckout
        config={checkoutConfiguration(configuration)}
        session={session}
        // Sometimes `onComplete` is called with a intermediate result code that could end up being a failed payment.
        onComplete={didComplete}
        onError={didFail}
      >

To Reproduce

Steps to reproduce the behavior:

  1. Try and pay with Swish
  2. Sometimes payments trigger the onComplete with Received result code instead of Authorised and sometimes they will end up with Cancelled as the final state.

Expected behavior

onComplete should only happen if a payment is completed.

Additional context

This feels like a race condition?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions