-
Notifications
You must be signed in to change notification settings - Fork 313
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
return Paystack::getAuthorizationUrl($data)->redirectNow(); #172
Comments
same here. I have everything set up and the function isn't redirecting my website to the paystack website. Can someone help, if this problem has already been solved? |
Still working here. Next time always remember to share your code |
Hello, Here is the code below. public function paystackPayment(Request $request) private function placeOrder($payment_method)
} |
@habeeblht17 what is your Laravel version
2=> Pass the data from your controller instead of a form, is this is the case then you need to build your array day and pass the array to the getAuthorizationUrl() method. example below
You missed the guide on the info page |
Thanks for getting back to me. Am using version 9. Have solve the problem.
The issue came from the csrf token from the form, where I suppose to use
the csrf token syntax that is compatible with version 9, am using the one
for version 5. I will close the case on github.
Once again thank you.
…On Sun, Jun 4, 2023, 10:46 AM goodmuyis ***@***.***> wrote:
@habeeblht17 <https://github.com/habeeblht17> what is your Laravel version
You can pass payment
Paystack::getAuthorizationUrl()->redirectNow();
The line above expects payment data in two ways
1=> Through the submitted form data, if this is your case use it like this
return Paystack::getAuthorizationUrl()->redirectNow();
2=> Pass the data from your controller instead of a form, is this is the
case then you need to build your array day and pass the array to the
getAuthorizationUrl() method. example below
$data = array(
"amount" => 700 * 100,
"reference" => '4g4g5485g8545jg8gj',
"email" => ***@***.***',
"currency" => "NGN",
"orderID" => 23456,
);
return Paystack::getAuthorizationUrl($data)->redirectNow();
You missed the guide on the info page
—
Reply to this email directly, view it on GitHub
<#172 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYZX6DGK32WMG3AVTFOGT73XJRKPFANCNFSM6AAAAAAWRLS24M>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This is not redirecting as its supposed to redirect , what might be the issue?, I have my secret and public key in my files correctly
The text was updated successfully, but these errors were encountered: