
Research
TeamPCP-Linked Supply Chain Attack Hits SAP CAP and Cloud MTA npm Packages
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.
angularjs-ravepayment
Advanced tools
An Angular library for RavePay Payment Gateway.

This AngularJS library provides a wrapper to add RavePay Payment to your AngularJS 1.x applications
###Install
npm install angularjs-ravepayment --save
<!-- angular 1.x -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.7/angular.min.js"></script>
<!-- Angularjs-Ravepayment -->
<script src="https://unpkg.com/angularjs-ravepayment/dist/angular-rave.min.js"></script>
<div ng-app="RaveApp" ng-controller="RaveController">
<rave-pay-button
class="paymentbtn"
text="Pay Me, My Money"
email="email"
amount="amount"
reference="reference"
meta="metadata"
callback="callback"
close="close"
integrity_hash="integrityHash"
currency="customer.currency"
country="customer.country"
customer_firstname="customer.firstName"
customer_lastname="customer.lastName"
custom_title="website.title"
custom_description="website.description"
custom_logo="website.logo"
></rave-pay-button>
</div>
<script>
let raveApp = angular.module("RaveApp", ['ravepayment'])
raveApp.config(['$raveProvider', function ($raveProvider) {
$raveProvider.config({
key: "FLWPUBK-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-X",
isProduction: false
})
}])
raveApp.controller("RaveController", function($scope){
$scope.amount = 1000 //Naira
$scope.customer = {
firstName: 'Foo',
lastName: 'Bar'
currency: 'NGN',
country: 'NG'
};
$scope.website = {
title: 'website name',
description: 'best ecommerce store',
logo: 'http://website.com/logo.png'
};
$scope.integrityHash = function() {
// retrieve value from server.
}
$scope.metadata = [
{
metaname:âflightidâ,
metavalue:â93849-MK5000â
}
]
$scope.computeReference = function() {
let text = "";
let possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for( let i=0; i < 10; i++ )
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
};
$scope.reference = $scope.computeReference();
$scope.email = "rave@flutterwave.com";
$scope.callback = function (response) {
console.log(response);
};
$scope.close = function () {
console.log("Payment closed");
};
})
</script>
For complete payment security, kindly use our integrity checksum feature to hash all payment values before passing it to the front end for processing.
Please see link to implement checksum: https://flutterwavedevelopers.readme.io/v1.0/docs/checksum
Also ensure you verify all transactions before giving value to your customer.
Please see link to verify transactions: https://flutterwavedevelopers.readme.io/v1.0/docs/status-check
Please checkout Rave Documentation for other available options you can add to the tag
REMEMBER TO CHANGE THE KEY WHEN DEPLOYING ON A LIVE/PRODUCTION SYSTEM AND CHANGE isProduction to true
git checkout -b feature-namegit commit -am 'Some commit message'git push origin feature-nameWhy not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or Any Social Media? Spread the word!
Don't forget to follow me on twitter!
Thanks! Ayeni Olusegun.
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
This is a Angular 1.x library for implementing rave payment gateway
We found that angularjs-ravepayment demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.