
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
rave-ionic3
Advanced tools
This Ionic 3 Module let's you add Rave Pay Button into your Cordova/Phonegap apps builds.
The Rave Ionic 3 Module adds support for spinning up the Rave modal on IOS and Android. It uses the Rave Standard endpoint and has done all the hard work for you. All you need to is add the necessary file and call the appropriate functions.
ionic start myapp blank$ cd myapp
$ npm install --save rave-ionic3
$ ionic cordova plugin add cordova-plugin-inappbrowser
$ npm install --save @ionic-native/in-app-browser
import { Rave, RavePayment, Misc } from 'rave-ionic3';
import { InAppBrowser, InAppBrowserEvent, InAppBrowserObject } from '@ionic-native/
constructor(
private rave: Rave,
private ravePayment: RavePayment,
private misc: Misc,
private iab: InAppBrowser,
) { }
...
this.rave.init(PRODUCTION_FLAG, "YOUR_PUBLIC_KEY")
.then(_ => {
var paymentObject = this.ravePayment.create({
customer_email: "user@example.com",
amount: 2000,
customer_phone: "234099940409",
currency: "NGN",
txref: "rave-123456",
meta: [{
metaname: "flightID",
metavalue: "AP1234"
}]
})
this.rave.preRender(paymentObject)
.then(secure_link => {
secure_link = secure_link +" ";
const browser: InAppBrowserObject = this.rave.render(secure_link, this.iab);
browser.on("loadstop")
.subscribe((event: InAppBrowserEvent) => {
if(event.url.indexOf('https://your-redirect-url') != -1) {
if(this.rave.paymentStatus(url) == 'failed') {
this.alertCtrl.create({
title: "Message",
message: "Oops! Transaction failed"
}).present();
}else {
this.alertCtrl.create({
title: "Message",
message: "Transaction successful"
}).present();
}
browser.close()
}
})
}).catch(error => {
// Error or invalid paymentObject passed in
})
})
init(PRODUCTION_FLAG, PUBLIC_KEY)
You must call the init method with the PRODUCTION_FLAG set to true or false and your PUBLIC KEY. If your production flag is set to true, you will need to pass in your live public key otherwise, you pass in your sandbox public key
PromisepreRender(validatedPaymentObject)
You must preconnect to Rave to obtain a secure link that will enable you to load the payment UI. Prior to calling this method you must have called RavePayment.create() to validate your payment object.
Promiserender(paymentLink)
Start the Rave UI to collect payment from user.
InAppBrowserObjectUse the InAppBrowserObject returned to close the modal once the transaction completes by binding to the loadend event and checking for your redirect url as was shown above.
paymentStatus(url)
Get's the status of the transaction and returns it as a string. The status could either be success or ````failed```.
Parameter(s)
url: this is the url gotten from the inappbroswer event event.url
Returns: String
You should use the returned status to determine whether or not you shoud show a success or error message to your users.
NOTE: IOS users may still need to rely on the Done button at the bottom left of the opened.
create(paymentObject)
You must validate the paymentObject you want to use to load the Rave payment UI. See https://developer.flutterwave.com/docs/rave-inline-1 for more documentation of the parameters.
Object (either an error or your validated payment object)amount()
The amount of the payment
email()
The customer's email
txref()
The transaction reference of the payment
currency()
The currency of the payment
Released under MIT License
Pull requests and new issues are welcome. See CONTRIBUTING.md for details.
FAQs
An ionic module to help you integrate rave inline payment modal
We found that rave-ionic3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.