<commit_before># paystack-php-sample
A sample PHP Composer app that uses the [YabaCon\Paystack](https://packagist.org/packages/yabacon/paystack-php) composer package to perform a standard integration.

## To run the sample
[download](https://github.com/ibrahimlawal/paystack-php-sample/archive/sample.zip) the files and extract 

1. cd to the folder:
```bash
cd /path/to/sample
```
2. run composer install ... details on getting composer here > https://getcomposer.org/
```bash
composer install
```
3. change the `PAYSTACK_SECRET_KEY` in [functions.php](functions.php) to your paystack sceret key gotten from > https://dashboard.paystack.co/#/settings/developer

4. on same page, ([https://dashboard.paystack.co/#/settings/developer](https://dashboard.paystack.co/#/settings/developer)) set the callback url to the url to donate-conclude.php

5. open index.php in the browser and complete the transaction

## Files

* [donate-init.php](donate-init.php) includes code that show how to initialize a transaction
* [donate-conclude.php](donate-conclude.php) includes code that show how to verify a transaction

## Contributing
<commit_msg>Edited README<commit_after># paystack-php-sample
A sample PHP Composer app that uses the [YabaCon\Paystack](https://packagist.org/packages/yabacon/paystack-php) composer package to perform a standard integration.

## To run the sample
[download](https://github.com/ibrahimlawal/paystack-php-sample/archive/sample.zip) the files and extract 

1. cd to the folder:
```bash
cd /path/to/sample
```
2. run composer install ... details on getting composer here > https://getcomposer.org/
```bash
composer install
```
3. change the `PAYSTACK_SECRET_KEY` in [functions.php](functions.php) to your paystack sceret key gotten from > https://dashboard.paystack.co/#/settings/developer

4. on same page, ([https://dashboard.paystack.co/#/settings/developer](https://dashboard.paystack.co/#/settings/developer)) set the callback url to the url to `donate-conclude.php`

5. open index.php in the browser and complete the transaction

## Files

* [donate-init.php](donate-init.php) includes code that show how to initialize a transaction
* [donate-conclude.php](donate-conclude.php) includes code that show how to verify a transaction

## Contributing

{'fraction_non_alphanumeric': 0.11971830985915492, 'fraction_numerical': 0.0044014084507042256, 'mean_word_length': 4.769035532994923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4165131', 'n_tokens_mistral': 698, 'n_tokens_neox': 682, 'n_words': 217}