Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Iconbanderas opened this issue Aug 16, 2023 · 2 comments

Comments

@Iconbanderas
Copy link

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

@tolu-paystack
Copy link

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

@sodmond
Copy link

sodmond commented Mar 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants