lightspeedretail / webstore

Web Store eCommerce solution for Lightspeed
http://www.lightspeedpos.com/webstore
Open Software License 3.0
85 stars 63 forks source link

Custom Payment Module Does not appear in Admin Panel #644

Closed Goosse closed 9 years ago

Goosse commented 9 years ago

Following instruction at https://github.com/lightspeedretail/webstore/wiki/Creating-a-Web-Store-3-Payment-Module

I have made direct copy of the paypal payment extension and only changed the pertinent names(file name and class name) and placed them in correct directory paths as shown in screen shot. screen shot 2014-12-23 at 4 50 45 pm

Nothing I do makes it show up in the admin panel.

gabeguz commented 9 years ago

Thanks for the report @Goosse -- I'll see if I can reproduce.

gabeguz commented 9 years ago

@Goosse -- Did you also change the $defaultName variable inside the paypalwithshipping.php file?

protected $defaultName = "PayPalWithShipping";

This tells webstore what the call the payment provider in the admin form.

I was able to see my new payment extension in the admin after having done that. Before changing that, I just had two entries for PayPal.

If that doesn't work, can you also run php -l on your new files to make sure there are no syntax errors in them?

let me know if that helps.

Goosse commented 9 years ago

hmm... Yes I have changed $defaultName. I also just ran php -l and no errors were found.

Goosse commented 9 years ago

I just did a clean install, and I still can't get this to work...

Goosse commented 9 years ago

I guess I must have had an old copy of the paypal shipping module. I started comparing mine with the original paypal module, and it was much different... I'm not sure how that happened, but once I updated mine to the new, it appears to be working fine. Thanks @gabeguz

gabeguz commented 9 years ago

Great to hear @Goosse!