A Vue package for Remita payment gateway.
npm install vue vue-remita --save
# OR
yarn add vue-remita
<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
- 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 😉😉
This project is licensed under the MIT License - see the LICENSE.md file for details