Paystack B4A Android Library
View attachment 119408
This is a library for easy integration of
Paystack 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
- Once successful, a prompt will be displayed.
Requirements
- Android SDKv16 (Android 4.1 "Jelly Bean") and above
- JavaObject
Installation & Usage
B4A
Download Paystack.jar & Paystack.xml and place in your additional libraries folder
Enable the Paystack Library in your Libraries Tab
Sub Globals
Dim Pay As Paystack
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
Pay.Initialize("Pay","pk_test_xxxxx",Me,Activity)
End Sub
AddApplicationText(
<meta-data
android:name="co.paystack.android.PublicKey"
android:value="pk_test_xxx"/>
Sub Button1_Click
Pay.InitializeTransaction("[email protected]", 1,"test-1234567890",Pay.CURRENCY_GHS)
End Sub
Demo
Download/Clone
https://github.com/claudeamadu/paystack-b4a/tree/main/Demo
View attachment 119452View attachment 119453View attachment 119454
Security
If you discover any issues, please email
[email protected].
Contact
For more enquiries and technical questions regarding the B4A Android PaystackSdk, please post on our issue tracker:
https://github.com/claudeamadu/paystack-b4a/issues.
Change log
Please see
CHANGELOG for more information what has changed recently.