Giter VIP home page Giter VIP logo

vue-paystack-payment-demo's Introduction

Vue PayStack Payment form

Straight forward and good looking credit-card form built using vue-paystack plugin.

Code:

   <paystack
              :amount="amount"
              :email="email"
              :paystackkey="paystackkey"
              :reference="reference"
              :callback="callback"
              :close="close"
              :currency="'NGN'"
              :embed="false"
              class="btn btn-primary mb-3 active"
              v-else
            >
              <span class="ps-3"> Make Payment </span>
              <span class="fas fa-arrow-right ms-3"></span>
            </paystack>

Features

  • Form design (inspired by: Bootstrap 5 Payment Form, [Bootstrap])
  • Form is fully responsive and scalable
  • Works on both Android and iOS

Paystack Props


Property Type Description
amount String Amount (in the lowest currency value - kobo, pesewas or cent) you are debiting customer
email String email
paystackkey Number Your public key from Paystack. Use test key for test mode and live key for live mode
reference String Unique case sensitive transaction reference. Only -,., =and alphanumeric characters allowed. If you do not pass this parameter, Paystack will generate a unique reference for you.
callback Function Function that runs when payment is successful. This should ideally be a script that uses the verify endpoint on the Paystack API to check the status of the transaction.
close Function Javascript function that is called if the customer closes the payment window instead of making a payment.
currency String Currency charge should be performed in. Allowed values are: NGN, GHS, ZAR or USD It defaults to your integration currency.
embed Boolean Determines if it should be embeded within your template or should be a pop up. Default is true

|


Production App using Vue.js and Vue-paystack

  • To know more about this service check out paystack

vue-paystack-payment-demo's People

Contributors

clinton9ice avatar

Watchers

 avatar

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.