Paystack Does Not Support Local Environment Tests Since http access is prohibited
Iconbanderas opened this issue · comments
Uchenna Joel Icon commented
Paystack no longer supports localhost testing for callback URLs and webhook URLS on https://dashboard.paystack.com/#/settings/developers
Tolu Kalejaiye commented
@Iconbanderas you can use ngrok to generate an https URL and tunnel requests to localhost
Sodik Owolabi commented
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')
];