A sample PHP app that uses the Paystack Class to receive call from an android app. A sample android app, and the source code for the Paystack Android library, are here.
- cd to the folder:
cd /path/to/android-web-service
1.5 if you downloaded this repo, you need to cd into android-web-service/paystack-class
and download and unzip the Paystack Class Master into it.
-
Change the
PAYSTACK_SECRET_KEY
in functions.php to your paystack secret key gotten from > https://dashboard.paystack.co/#/settings/developer -
call
//url.domain.tld/to/charge-token.php?token=PSTK_xxx&email=xxxxx
from the android app with a token generated using the Paystack Android Library.
- verify-transaction.php includes code that show how to verify a transaction
- charge-authorization.php includes code that show how to charge an authorization code
- results will have a json log of transactions
Please see CONTRIBUTING for details.
If you discover any security related issues, please email yabacon.valley@gmail.com instead of using the issue tracker.