Stripe Java API and Railo/ACF Part Deux

I wanted to go ahead and push out my latest update on the Stripe Java API I have been working on, but due to an extremely crazy schedule, I am afraid I cannot attach much documentation now. I hope to remedy that in the future as soon as my schedule lightens up a little. Here is the stripped down CFC. Currently it is able to process a charge as well as grab a list of events from Stripe. Here is the code.

As an example of how to use the CFC, here is a small demo.

A few things to note here. To get around having to javacast the expiration month and years to ints, if you pass them as string values they evaluate correctly. This also applies to the amount field. Any parameter you are allowed to pass according to the java API documentation should work just fine.


About Robert Zehnder

Web application developer specializing in ColdFusion/Railo and Open Source development.

Posted on March 10, 2013, in General and tagged , , , . Bookmark the permalink. 2 Comments.

  1. coldfusionPaul

    you can short circuit those two datetime functions by

    cfDateTimeObject.getTime() to return java epoch offset in ms.
    cfDateTimeObject.setTime(javaEpochOffset) to set cf datetime w/java epoch offset in ms.

  2. Dang good idea. I am trying to keep it as slim as possible (if you don’t count the comments 🙂 ) That will shave off quite a few lines.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: