Giter VIP home page Giter VIP logo

rave-vue's Introduction

Vue-Rave Plugin

======================================

Project Setup

  1. clone the repo to your desktop by running the code git clone https://github.com/emmajiugo/rave-vue.git on your CMD
  2. cd into the project folder
  3. Run npm install to install all dependencies
  4. Compile and Hot-reload for developement
        npm run serve
    
  5. By default, your project should be running on port: 8080. Go to your browser and type localhost:8080 to start your project testing.

Features Included

  • Card Payment
  • Account Payment
  • Payment Plan (i.e. for subscription)
  • Subaccount (i.e. for split payments)

How To Use

After setting up the project on your computer, open the App.vue file from your src folder and add your credentials and details as necessary.

Sample code for editting on the App.vue file
    //you can set all values you want to pass
    raveKey: "FLWPUBK-XXXXXX-X", // replace with your key from your dashboard
    email: "[email protected]", // email address of your client
    amount: 10,  // replace with your desired amount
    currency: "NGN", // supported currencies NGN, USD, EUR, GBP UGX, TZX, GHS, KES, ZAR
    country: "NG", // pass country NG, GH, KE, ZA 
    customer: {
    firstname: "", // add customer firstname
    lastname: "" // add customer lastname
    },
    custom: {
    title: "", // add custom title
    description: "", // add a description
    logo: "" // add logo
    },
    redirectUrl: "", // add redirect url
    paymentPlan: "", // add payments plan ID here
    paymentMethod: "", // add 'card' or 'account' if you want a specific feature. Leave empty if you want all features
    subaccounts: {
    id: "RS_XXXXXXXX", // id of the subaccount; get from your dashboard
    transaction_split_ratio:"", //
    transaction_charge_type: "", //include this if the you want a flat fee eg: flat
    transaction_charge: "" // include the flat fee amount you want eg: 100
    } // add a subaccount for split payments

You can set all the values you want to pass to the above code to run your test.

To get your Rave's Public-key and Secret-Key, visit and signup on https://ravesandbox.flutterwave.com/ for test keys, while for your live keys, visit and signup on https://rave.flutterwave.com/

To go live, make sure your live keys are used and open rave-modal.vue from your component folder and set the isProduction default to true.

    isProduction: {
        type: Boolean,
        required: false,
        default: false //set to true if you are going live
    },

Thankyu!!!

Chigbo Ezejiugo (HRH Emmajiugo)

rave-vue's People

Contributors

emmajiugo 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.