Flutterwave B4A Android Library
This is a library for easy integration of Flutterwave with your Android application with B4A. Use this library in your B4A project.
Summarized flow
- Collect user's details such as email & name
- Initialize the transaction
- Call the Initialize Transaction endpoint
- App will loads WebView to initialize a transaction
- User enter details for transaction
- Once successful, a prompt will be displayed.
Requirements
- Android SDKv16 (Android 4.1 "Jelly Bean") and above
- JavaObject
Installation & Usage
B4A
Download Flutterwave.jar & Flutterwave.xml and place in your additional libraries folder
Enable the Flutterwave Library in your Libraries Tab
Assign Paystack Library to a Variable:
Sub Globals
Dim Pay As Flutterwave
End Sub
Initialize Paystack Library:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
Pay.Initialize("Pay","FLWPUBK_TEST-SANDBOXDEMOKEY-X",Me,Activity,True)
End Sub
Perform a transaction:
Sub Button1_Click
Pay.InitializeTransaction("[email protected]","0558382XXX","Clxxxx Oxxxx", 1,"test-1234567890","Label","TEST",Pay.CURRENCY_GHS,"")
End Sub