Thanks a lot. This should save me loads of time! 🙂
Stripe Subscription Plugin
edthefifth last edited by
I modified the paypal plugin to use stripe instead...
Wow, awesome! Great job
This post is deleted!
@edthefifth or anyone for that matter that might know whats going on let me know.
So I've taken this plugin and been playing around to modify to suit my needs, however I have come across some bug. I think I narrowed it down to the subscribe.tpl - Basically theres a script section within it that loads up the stripe payment popup info on click by the element customButton.
Problem is, ive noticed that if the page is visited by the navigation the popup does not execute. Button just acts like nothings attached. BUT.. If you refresh the page then click the button it seems to work no problem.
anyone know how to solve this issue?
Line like 32
I assume its not like rendering the script as its being sent from menu, I guess i should move the script to the header so it preloads? I duno.
Yeah console output seems to confirm this..
Visiting from the menu no fetch for getting the api is passed.
Once refreshed on console reports fetching no problem.
@psychobunny Pinging you since this is a fork of your plugin for paypal.
Ok so, Update 1:
Removed the function onload wrapper. Still same problem as above, however step closer, Now clicking the navigation once more loads the GET files. But doesnt do it on initial visit from navmenu.
I guess a quick fix would be to just have it refresh or reload page when visiting it, but that isnt good i dont think.
SOLVED..Nevermind its not solved. Some times it works some times theres a delay and still never gets sent..
Found another bug.. You may call me the bug hunter.
https://github.com/edthefifth/nodebb-plugin-stripe-subscriptions/blob/master/library.js line 90 - Getting an error i assume due to the template not entirely sure about this one.
ajaxify.js in console brings up the following..
So if you're subscribed, then go back to visit the Subscribe link in navmenu, the loading bar will continue to spin but not load or /redirect you. Unless you refresh.