Vue.js plugin for Stripe JS Object.
Maybe you don't need the checkout or the elements. Maybe you just need to access the other methods provided by the Stripe JS SDK. This plugin will help you do that.
Import and register the StripePlugin
plugin.
This will give you access to this.$stripe
, Where this.$stripe
= window.Stripe(PUBLISHABLE_KEY, options)
.
With this, you can now access the Stripe methods like, .confirmCardPayment
, .confirmAlipayPayment
, and more. See here.