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

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

Open Iconbanderas opened this issue 2 years ago • 3 comments

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

Iconbanderas avatar Aug 16 '23 19:08 Iconbanderas

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

tolu-paystack avatar Nov 01 '23 20:11 tolu-paystack

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')
];

sodmond avatar Mar 14 '24 09:03 sodmond

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

How do you do this?

Kawesom avatar Jul 04 '24 16:07 Kawesom