Skip to content

Commit 15c9d33

Browse files
docs(readme): Update readme
1 parent 9800f37 commit 15c9d33

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ [email protected]
111111

112112
Set up routes and controller methods like so:
113113

114+
Note: Make sure you have `/payment/callback` registered in Paystack Dashboard [https://dashboard.paystack.co/#/settings/developer](https://dashboard.paystack.co/#/settings/developer) like so:
115+
116+
![payment-callback](https://cloud.githubusercontent.com/assets/2946769/12746754/9bd383fc-c9a0-11e5-94f1-64433fc6a965.png)
117+
114118
```php
115119
Route::post('/pay', 'PaymentController@redirectToGateway')->name('pay');
116120
Route::get('/payment/callback', 'PaymentController@handleGatewayCallback');
@@ -147,8 +151,9 @@ class PaymentController extends Controller
147151
{
148152
$paymentDetails = Paystack::getPaymentData();
149153

150-
dd($paymentDetails); // Now you have the payment details,
151-
// you can store the authorisation code in your db to allow for recurrent subscriptions
154+
dd($paymentDetails);
155+
// Now you have the payment details,
156+
// you can store the authorization_code in your db to allow for recurrent subscriptions
152157
// you can then redirect or do whatever you want
153158
}
154159
}

src/PaystackServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
43
/*
54
* This file is part of the Laravel Paystack package.
65
*

tests/PaystackTest.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,5 @@
1616

1717
class PaystackTest extends PHPUnit_Framework_TestCase
1818
{
19-
/**
20-
* Test that true does in fact equal true
21-
*/
22-
public function testTrueIsTrue()
23-
{
24-
$this->assertTrue(true);
25-
}
19+
2620
}

0 commit comments

Comments
 (0)