Git Product home page Git Product logo

vue-v3's Introduction

Flutterwave Vue.JS (Vue 3) Library

Publish Vue.js Package npm npm NPM

The all-new Vue SDK helps you create seamless payment experiences in your Vue 3 mobile/web app. By connecting to our modal, you can start collecting payment in no time.

Available features include:

  • Collections: Card, Account, Mobile money, Bank Transfers, USSD, Barter, NQR.
  • Recurring payments: Tokenization and Subscriptions.
  • Split payments

Table of Contents

Requirements

  1. Flutterwave for business V3 API keys
  2. Vue version >= 3.0

Installation

This new project is not yet on npm (will need the permission of the Flutterwave team).

Initialization

  1. Import the Flutterwave Library in the 'main.js' file.

  2. Add the Flutterwave plugin to your app passing in your Flutterwave Public Key (optional)

Note ๐Ÿ’ก: For a Typescript project sample, please see the project in the example directory of the project repository.

If Public key is not added you will have to pass in the public_key parameter to the provided payment component button and payment function

//main.js
import { createApp } from "vue";
import Flutterwave from "flutterwave-vue-v3";

const app = createApp(App);

app.use(Flutterwave, {
  publicKey: "<your public key here>",
});

app.mount("#app");

Usage

Majority of the api here works similar to that of the older version. One major difference is the removal of global function imports (such as this.payWithFlutterWave) in favour of composables such as useFlutterWave(). All functions needed are contained in the composable, and can be accessed.

const fw = useFlutterWave();

See the example at src/ for more information

Debugging Errors

We understand that you may run into some errors while integrating our library. You can read more about our error messages here.

For authorization and validation error responses, double-check your API keys and request. If you get a server error, kindly engage the team for support.

Support

For additional assistance using this library, please create an issue on the Github repo or contact the developer experience (DX) team via email or on Slack.

You can also follow us @FlutterwaveEng and let us know what you think ๐Ÿ˜Š.

Contribution

We welcome contributions from the community. Please see the community guide for contributions guidelines.

License

By contributing to this library, you agree that your contributions will be licensed under its MIT license.

Copyright (c) Flutterwave Inc.

Notice

This new version was made from the old version at the current repo by Nikechukwu Okoronkwo

vue-v3's People

Contributors

corneliusyaovi avatar nikeokoronkwo avatar dependabot[bot] avatar korneliosyaovi avatar chijiokeflw avatar chijiokeokorji avatar toybz avatar

Stargazers

 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.