unicodeveloper / laravel-paystack

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

Paystack Does Not Support Local Environment Tests Since http access is prohibited #177

Open Iconbanderas opened 10 months ago

Iconbanderas commented 10 months ago

Paystack no longer supports localhost testing for callback URLs and webhook URLS on https://dashboard.paystack.com/#/settings/developers

tolu-paystack commented 8 months ago

@Iconbanderas you can use ngrok to generate an https URL and tunnel requests to localhost

sodmond commented 3 months ago

Paystack no longer supports localhost testing for callback URLs and webhook URLS on https://dashboard.paystack.com/#/settings/developers

Just use a custom callback url in your code like this;

$data = [
            'amount'    => ($amount * 100),
            'email'     => $request->email,
            'currency'  => 'NGN',
            'reference' => Paystack::genTranxRef(),
            'metadata' => [],
            'callback_url' => route('payment.verify')
];
Kawesom commented 6 days ago

@Iconbanderas you can use ngrok to generate an https URL and tunnel requests to localhost

How do you do this?