unicodeveloper / laravel-paystack

:credit_card: :package: :moneybag: Laravel 6, 7, 8, 9, 10 and 11 Package for Paystack
https://paystack.co
MIT License
615 stars 313 forks source link

403 Forbidden #176

Open samimaken opened 1 year ago

samimaken commented 1 year ago

Hi, I am getting this error

Client error: POST https://api.paystack.co/transaction/initialize resulted in a 403 Forbidden response: <!DOCTYPE html>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.');
    }
}`
Hateem76 commented 11 months ago

@samimaken did you solve it?

samimaken commented 11 months ago

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

Hateem76 commented 11 months ago

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

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