Preside and stripe-cfml library

Hi all, I’m hoping to use the stripe-cfml library (mostly for webhooks), but haven’t been able to get it working.

I first attempted to install using box install stripecfml, but that errors with:

Error cloning github repository
java.lang.ExceptionInInitializerError 
java.lang.NullPointerException: No Bundle provided

I then attempted to install as a standalone library by placing the files in the extensions folder, but haven’t been able to get it working that way either - maybe I’m just missing something obvious, etc.

So, a couple of questions:

  1. Should I be able to use this library in Preside?
  2. And if so, any tips?

Thanks!

If it is a coldbox module, then if box install were working, the module should work in the application like any other coldbox module. Install it to a /modules folder in the webroot.

If box install failing, the author should be made aware as will be an issue with the module.

Thanks @dominic.watson - that helps.

I was able to get install working by uninstalling and reinstalling Commandbox. Now it’s being installed in the application/modules folder.

However, the routes don’t seem to be working in Preside. I even setup a new Preside site to make sure it wasn’t unique to my current site.

  1. For Preside, I tested the stripecfml ColdBox module, as well as the route-visualizer module - neither works out of the box.
  2. I also created a Coldbox app, and in that app both modules worked as expected.

Is there anything that I need to update/change in Preside to make Coldbox module routes work?

Thanks!

By routes, you mean URL paths? That will be expected as preside implements its own routing system. We support coldbox modules that provide services, helpers, etc. - but not URL endpoints at this point.

Obviously it would be great to support module routing but it might be tricky if they’re using core coldbox routes.

You might need to implement a preside route handler to deal with these specifically for now: Preside Documentation :: Routing

Great, that’s exactly what I was asking! With you suggestions, I was able to implement a preside route handler for the stripecfml module. Thanks!

1 Like

Brill, love to hear it! :slight_smile: