ectoflow/vue-stripe-js

clientSecret

entinio opened this issue · 1 comments

I used your Card only example. According to the doc, the clientSecret value from the PaymentIntent object is used in the elements Options (it's even required).

Unfortunately, your component provides this warning :

Unrecognized create() parameter: clientSecret is not a recognized parameter. This may cause issues with your integration in the future.

I use this parameter this way :

const elementsOptions = ref({
  clientSecret: 'pi_1DrNBJ2eZvKYlo2CXQCh5Pwi_secret_wx8kjhsOZnAz6axvBPGFXUww7',
})

Either I miss something about the paymentIntent secret key here, or there's some misunderstanding about the options.

Could you update the example by specifying where you input your intent secret key ?

Hi, as per Stripe documentation clientSecret can be used only with:

Required to use with the Payment Element and the Link Authentication Element

So, you should specify type:

<StripeElements>
  <StripeElement type="payment" />
</StripeElements>

// or 'linkAuthentication'