vue-remita
Vue-Remita
A Vue package for Remita payment gateway.
Installation
npm install vue vue-remita --save
# OR
yarn add vue-remita
Example
<template>
<remita
:customerId="customerId"
:amount="amount"
:email="email"
:firstName="firstName"
:lastName="lastName"
:remitakey="remitakey"
:narration="narration"
:close="close"
>
Make Payment
</remita>
</template>
<script type="text/javascript">
import remita from "vue-remita";
export default {
components: {
remita,
},
data() {
return {
customerId: 140700251,
remitakey: "PUBIC_KEY",
firstName: "Foo",
lastName: "Bar",
email: "[email protected]",
amount: 100000,
narration: "bla bla",
};
},
methods: {
callback: function(response) {
console.log(response);
},
close: function() {
console.log("Payment closed");
},
},
};
</script>
Please checkout Remita Documentation for other available options you can add to the tag
How to contribute ✨
- Fork it!
- Create your feature branch:
git checkout -b feature-name
- Commit your changes:
git commit -am 'Some commit message'
- Push to the branch:
git push origin feature-name
- Submit a pull request 😉😉
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Dependencies
Dependencies
@babel/cli: ^7.2.3@babel/core: ^7.3.4@babel/preset-env: ^7.3.4babel-loader: ^8.0.5css-loader: ^2.1.0eslint-config-vue: ^2.0.2eslint-loader: ^2.1.2eslint-plugin-vue: ^5.2.2standard: ^12.0.1uglifyjs-webpack-plugin: ^2.1.2vue: ^2.6.7vue-loader: ^15.6.4vue-template-compiler: ^2.6.7webpack: ^4.29.6webpack-cli: ^3.2.3webpack-dev-server: ^3.2.1