laravel-paystack
laravel-paystack copied to clipboard
Paystack Does Not Support Local Environment Tests Since http access is prohibited
Paystack no longer supports localhost testing for callback URLs and webhook URLS on https://dashboard.paystack.com/#/settings/developers
@Iconbanderas you can use ngrok to generate an https URL and tunnel requests to localhost
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')
];
@Iconbanderas you can use ngrok to generate an https URL and tunnel requests to localhost
How do you do this?