Skip to content
This repository was archived by the owner on Mar 27, 2021. It is now read-only.
This repository was archived by the owner on Mar 27, 2021. It is now read-only.

Client-side source creation of 3D Secure Source object gives Error: You did not specify the type of Source or Token to create. We could not infer which Element you want to use for this operation. #29

@dagfs

Description

@dagfs

https://stripe.com/docs/sources/three-d-secure#client-side-source-creation

stripe.createSource({
  type: 'three_d_secure',
  amount: 1099,
  currency: "eur",
  three_d_secure: {
    card: "src_19YP2AAHEMiOZZp1Di4rt1K6"
  },
  redirect: {
    return_url: "https://shop.example.com/crtA6B28E1"
  }
}).then(function(result) {
  // handle result.error or result.source
});

Gives :

Uncaught (in promise) Error: You did not specify the type of Source or Token to create.
        We could not infer which Element you want to use for this operation.
    at ProxyComponent._this.findElement (inject.js:61)

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