the_unforgiven_II
the_unforgiven_II

Reputation: 361

SagePay with Laravel, Route issue

Im integrating Sagepay and after successful payment it returns a url like so:

 /success?crypt=@4672799fb6f902806caba4

So how can i reflect this in my routes file.

I currently have:

Route::get('success', function(){
return 'Success';
});

But doesn't work, so what should I need in the routes file to achieve this callback?

Upvotes: 0

Views: 628

Answers (1)

beech
beech

Reputation: 1064

Make sure that it is issuing a GET request, the callback may be a POST.

Try:

Route::all('success', function(){
    return 'Success';
});

Upvotes: 1

Related Questions