Rave
Rave is an iOS library for interacting with the Flutterwave payment api.
Install / Use
/learn @johnsonejezie/RaveREADME
Rave
Rave is an easy to implement library to interact with Flutterwave API. It comes with in-built UI to collect credit card or bank details.
<img src="Rave/Screenshots/1.PNG" alt="screenshot" height = "400px" width = "220px"/> <img src="Rave/Screenshots/2.PNG" alt="screenshot" height = "400px" width = "230px"/>
##Installation
Rave supports Swift 3.0+.
You can integrate Rave into your project manually. Drag the inner Rave folder into your project. Rave uses TripleDES for encryption and as such requires CommonCrypto. Create header bridge and import CommonCrypto.
#import <CommonCrypto/CommonCrypto.h>
Basic usage
let publicKey = "FLWPUBK-bd19817370eb7aa5b89d8ac9f3f28a72"
let secretKey = "FLWSECK-5d413ec5aac3d462cf8b9f0d76113765"
let txRef = "rave-dash-1481777961"
let itemDescription = "Payment for items..."
let payerEmail = "example@example.com"
let ravePaymentManager = RavePaymentManager(publicKey, secretKey: secretKey, appName: "Demo", transactionDescription: "Payment for items...", amount: 100, email: "johnsonejezie@gmail.com", txRef: txRef)
ravePaymentManager?.country = "Nigeria"
ravePaymentManager?.logoImage = UIImage(named: "logo.jpg")
ravePaymentManager?.delegate = self
ravePaymentManager?.show()
Optional properties: You can also set the following optional property.
currency:String //Default: Device Locale currency
country:String //Default: Device regionCode will be used to get country
firstname:String
lastname:String
IP:String //If not set, the library uses "https://api.ipify.org?format=json" to get IP
narration:String
passcode:String
logoImage: UIImage
meta:[[String:Any]]
Delegate
func ravePaymentManagerDidCancel(_ ravePaymentManager: RavePaymentManager) {
print("cancel")
}
func ravePaymentManager(_ ravePaymentManager: RavePaymentManager, didCompletePaymentWithResult result: RavePaymentResult) {
print(result.status)
print(result.message)
}
See Demo for more details.
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
