Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fixed a few typographical errors in the README.md file #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions 19 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ Paystack::getAllTransactions();
paystack()->getAllTransactions();

/**
* This method generates a unique super secure cryptograhical hash token to use as transaction reference
* This method generates a unique super secure cryptographic hash token to use as transaction reference
* @returns string
*/
Paystack::genTranxRef();
Expand Down Expand Up @@ -327,8 +327,8 @@ A sample form will look like so:

```html
<form method="POST" action="{{ route('pay') }}" accept-charset="UTF-8" class="form-horizontal" role="form">
<div class="row" style="margin-bottom:40px;">
<div class="col-md-8 col-md-offset-2">
<div class="row" style="margin-bottom:40px;">
<div class="col-md-8 col-md-offset-2">
<p>
<div>
Lagos Eyo Print Tee Shirt
Expand All @@ -344,16 +344,15 @@ A sample form will look like so:
<input type="hidden" name="reference" value="{{ Paystack::genTranxRef() }}"> {{-- required --}}
{{ csrf_field() }} {{-- works only when using laravel 5.1, 5.2 --}}

<input type="hidden" name="_token" value="{{ csrf_token() }}"> {{-- employ this in place of csrf_field only in laravel 5.0 --}}

<input type="hidden" name="_token" value="{{ csrf_token() }}"> {{-- employ this in place of csrf_field only in laravel 5.0 --}}

<p>
<button class="btn btn-success btn-lg btn-block" type="submit" value="Pay Now!">
<i class="fa fa-plus-circle fa-lg"></i> Pay Now!
</button>
<button class="btn btn-success btn-lg btn-block" type="submit" value="Pay Now!">
<i class="fa fa-plus-circle fa-lg"></i> Pay Now!
</button>
</p>
</div>
</div>
</div>
</form>
```

Expand All @@ -367,7 +366,7 @@ We must validate if the redirect to our site is a valid request (we don't want i

In the controller that handles the request coming from the payment provider, we have

`Paystack::getPaymentData()` - This function calls the verification methods and ensure it is a valid transction else it throws an exception.
`Paystack::getPaymentData()` - This function calls the verification methods and ensure it is a valid transaction else it throws an exception.

You can test with these details

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.