Git Product home page Git Product logo

Comments (7)

Dante690 avatar Dante690 commented on June 3, 2024 4

Also we need a full payment element guide for this.. like card example...thnks

from vue-stripe-js.

softbeehive avatar softbeehive commented on June 3, 2024 2

Hi,
Alright, let's take a look. Do you mean the type "payment" element with payment intent, right?

As a start point you can add type='payment' to:

<StripeElement ref="card" :elements="elements" :options="cardOptions" />

from vue-stripe-js.

softbeehive avatar softbeehive commented on June 3, 2024 2

https://stripe.com/docs/payments/accept-a-payment?ui=elements

I'm gonna provide a full example, which requires stripe account and payment intent (server-side), but really tight on time right now

Basically, you need client_secret, it then passed as property of options to StripeElements. Then you'll be able to call confirmPayment on stripe instance.

from vue-stripe-js.

mattvb91 avatar mattvb91 commented on June 3, 2024 1

does anyone have a working example with payment intent??

from vue-stripe-js.

tanha1998 avatar tanha1998 commented on June 3, 2024

await elms.value.instance.confirmCardPayment(clientSecret, { payment_method: { card: cardNumber } })

from vue-stripe-js.

yashBhosale avatar yashBhosale commented on June 3, 2024

@softbeehive If you wanna assign this to me I can probably submit a PR with an example for using Payment Elements this weekend.

from vue-stripe-js.

softbeehive avatar softbeehive commented on June 3, 2024

@yashBhosale you are welcome to submit a PR at any time

Here is some guidance:

  1. Create PaymentType.vue in examples folder
  2. Use Vue Composition API (preferably)
  3. Test payment type element
  4. Add Payment Type section to README.md before "Types"

from vue-stripe-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.