Skip to content

[BUG]: Link paymentElement paymentType read as 'card' on init #852

@sthomsondiagram

Description

@sthomsondiagram

What happened?

When logged in to a Link and a paymentElement is rendered, the first 'change' event reads the event.value.type property as 'card' and not 'link'. Later on in the payment process if you change to another payment type and then change back to Link, it reads as 'link'

This inappropriate as although technically Link is a wallet and not a payment method, it doesn't not provide enough context to the developer as to what payment method has been selected.

In my instance, we have users checking a Save Card For Future Use checkbox that we disable if the payment type is set to anything except for 'card'. This is causing Link payments to error out.

Environment

No response

Reproduction

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions