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

save_last_transaction_reference() function not found #22

Open
walegbenga opened this issue Mar 18, 2019 · 5 comments
Open

save_last_transaction_reference() function not found #22

walegbenga opened this issue Mar 18, 2019 · 5 comments

Comments

@walegbenga
Copy link

walegbenga commented Mar 18, 2019

While trying to setup the paystack on my site and trying to verify a transaction(Test phase), this problem occurred Fatal error: Uncaught Error: Call to undefined function save_last_transaction_reference() in /home/vagrant/Code/Project/public/payProcess.php on line 28

I don't know if a function like this is in the software save_last_transaction_reference(). What is the way around it

Expected Results:

I expect it to store transaction reference

@walegbenga
Copy link
Author

Seems paystack github account is no longer active

@techbly
Copy link

techbly commented Apr 11, 2019

the function does not exist in the package. you are the one to create the function

@walegbenga
Copy link
Author

I got that

@walegbenga
Copy link
Author

I have to say, (My opinion) your readme.md is not explainable enough.
I believe am also the one who will provide the page to redirect to so that the customer can pay
// redirect to page so User can pay
header('Location: ' . $tranx->data->authorization_url);

And if yes, where will the user be redirected when he press the submit button?
The next explanation you gave does not explain this as this is the next explanation you made

//When the user enters their card details, Paystack will validate and charge the card. It will do all the below:........
I wonder where it will be redirected to.

And if no(i.e am not the one to provide this url [header('Location: ' . $tranx->data->authorization_url);]). Where will they be redirected to?

@boxvibe
Copy link

boxvibe commented Jun 23, 2019

header('Location: ' . $tranx->data->authorization_url) redirects to paystack checkout

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