Skip to content

Commit a37a7c3

Browse files
Improve docs and changelog
1 parent ab1118e commit a37a7c3

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@
33
All Notable changes to `laravel-paystack` will be documented in this file
44

55
## 2015-11-04
6-
- Initial release
6+
- Initial release
7+
8+
## 2020-05-23
9+
- Support for Laravel 7
10+
- Support for splitting payments into subaccounts

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,18 @@ return [
9191

9292
Though there are multiple ways to pay an order, most payment gateways expect you to follow the following flow in your checkout process:
9393

94-
###1. The customer is redirected to the payment provider
94+
### 1. The customer is redirected to the payment provider
9595
After the customer has gone through the checkout process and is ready to pay, the customer must be redirected to site of the payment provider.
9696

97-
The redirection is accomplished by submitting a form with some hidden fields. The form must post to the site of the payment provider. The hidden fields minimally specify the amount that must be paid, the order id and a hash.
97+
The redirection is accomplished by submitting a form with some hidden fields. The form must send a POST request to the site of the payment provider. The hidden fields minimally specify the amount that must be paid, the order id and a hash.
9898

9999
The hash is calculated using the hidden form fields and a non-public secret. The hash used by the payment provider to verify if the request is valid.
100100

101101

102-
###2. The customer pays on the site of the payment provider
103-
The customer arrived on the site of the payment provider and gets to choose a payment method. All steps necessary to pay the order are taken care of by the payment provider.
102+
### 2. The customer pays on the site of the payment provider
103+
The customer arrives on the site of the payment provider and gets to choose a payment method. All steps necessary to pay the order are taken care of by the payment provider.
104104

105-
###3. The customer gets redirected back
105+
### 3. The customer gets redirected back to your site
106106
After having paid the order the customer is redirected back. In the redirection request to the shop-site some values are returned. The values are usually the order id, a paymentresult and a hash.
107107

108108
The hash is calculated out of some of the fields returned and a secret non-public value. This hash is used to verify if the request is valid and comes from the payment provider. It is paramount that this hash is thoroughly checked.
@@ -128,7 +128,7 @@ Note: Make sure you have `/payment/callback` registered in Paystack Dashboard [h
128128

129129
```php
130130
// Laravel 5.1.17 and above
131-
Route::post('/pay', 'PaymentController@redirectToGateway')->name('pay');
131+
Route::post('/pay', 'PaymentController@redirectToGateway')->name('pay');
132132
```
133133

134134
OR
@@ -150,7 +150,7 @@ OR
150150
// Laravel 5.0
151151
Route::get('payment/callback', [
152152
'uses' => 'PaymentController@handleGatewayCallback'
153-
]);
153+
]);
154154
```
155155

156156
```php
@@ -235,27 +235,27 @@ Paystack::getAllTransactions();
235235
Paystack::genTranxRef();
236236

237237
/**
238-
* This method creates a subaccount to be used for split payments
238+
* This method creates a subaccount to be used for split payments
239239
* @return array
240240
*/
241241
Paystack::createSubAccount();
242242

243243

244244
/**
245-
* This method fetches the details of a subaccount
245+
* This method fetches the details of a subaccount
246246
* @return array
247247
*/
248248
Paystack::fetchSubAccount();
249249

250250

251251
/**
252-
* This method lists the subaccounts associated with your paystack account
252+
* This method lists the subaccounts associated with your paystack account
253253
* @return array
254254
*/
255255
Paystack::listSubAccounts();
256256

257257
/**
258-
* This method Updates a subaccount to be used for split payments
258+
* This method Updates a subaccount to be used for split payments
259259
* @return array
260260
*/
261261
Paystack::updateSubAccount();

0 commit comments

Comments
 (0)