How to add a custom payment page & options

How are you handling the csrf_token piece? Being hard coded in the file you gave out wont validate it.

Error 400!
The CSRF token could not be verified.

EDIT: This resolved itself automatically, I dont have an explanation as to why.
 
Last edited:
While i appreciate the effort and everything. Can't someone just upload a complete workup, for us to just edit, and make our own preferences to, instead of us having to redo everything.
 
Hi Guys having issues with step 2 replacing "the _addMenuItems() method from PagesExt.php file with this code." because as you can see here http://prntscr.com/nxt322 this is what have before i replace the code and when i do actually replace the code http://prntscr.com/nxt3tn the only thing i get on the sidebar is this: http://prntscr.com/nxt3gg

The other problem i have is i went ahead and ignored that part and carried on so i created the html page etc however when i click the order now button, it brings up the payment options but then when i click proceed to checkout it simply redirects me back to the /customer/index.php/pages so im at a loss guys

Any help would be appreciated.
 
Last edited:
@andyweaver - let's take this one issue at a time.
The _addMenuItems looks correct to me. Can you add here your entire extension in a zip file so i can see it entirely and test it in a dev?
 
Hi
Please find attached.

The redirect issue i have fixed as it was a javascript issue in my html template, removed that and all fixed but the first problem which u can find the zip file attached is still there.
 

Attachments

Okay, so here's what happens in my dev once i add and enable this extension:
Screenshot 2019-06-05 16.48.39.png
So it is working perfectly fine as far as i can see.

Do you have other extensions that alter the menu, which might conflict ?
 
This is great! Thanks for putting it all together, vladmedv!

The only question I have is that I notice that the "Purchase" button says "Purchase" even when I have already purchased a package. The old way changed the button text to "This is your current package." Is there a way to add that code back in?

Thanks!
 
Back
Top