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

Description
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)