laravel-paystack icon indicating copy to clipboard operation
laravel-paystack copied to clipboard

403 Forbidden

Open samimaken opened this issue 1 year ago • 3 comments

Hi, I am getting this error

Client error: POST https://api.paystack.co/transaction/initialize resulted in a 403 Forbidden response:

Just a moment...<meta http-equiv="Content-Type" content="text/htm (truncated...)

followed all steps, added keys in the .env file

` public function accept(Request $request) {

    try {
        return Paystack::getAuthorizationUrl()->redirectNow();
    } catch (\Exception $e) {
        dd($e);
        return Redirect::back()->with('error', 'The paystack token has expired. Please refresh the page and try again.');
    }
}`

samimaken avatar Aug 09 '23 12:08 samimaken

@samimaken did you solve it?

Hateem76 avatar Dec 04 '23 10:12 Hateem76

Yes, you have to use a Nigerian or South African VPN to use this API.

samimaken avatar Dec 04 '23 10:12 samimaken

Yes, you have to use a Nigerian or South African VPN to use this API.

Ohkay, thanks mate, for saving my day...

Hateem76 avatar Dec 04 '23 10:12 Hateem76