File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,10 @@ MERCHANT_EMAIL=unicodeveloper@gmail.com
111111
112112Set 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
115119Route::post('/pay', 'PaymentController@redirectToGateway')->name('pay');
116120Route::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}
Original file line number Diff line number Diff line change 11<?php
22
3-
43/*
54 * This file is part of the Laravel Paystack package.
65 *
Original file line number Diff line number Diff line change 1616
1717class 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}
You can’t perform that action at this time.
0 commit comments