Coder Social home page Coder Social logo

Comments (9)

shermany avatar shermany commented on August 10, 2024

Hi Chris -

Regarding the timestamp, try this:

Math.round(new Date().getTime() / 1000);

Unix timestamps are in seconds since epoch, but Javascript's getTime()
function prefers to use milliseconds. The divide, and the Math.round() call
to nix the decimal point are what you need.

  • Sean

On Fri, Apr 27, 2012 at 10:08 AM, Chris Geoghegan <
[email protected]

wrote:

I'm trying to integrate recurly.js into my node.js application. I'm
receiving the following error when I submit a form though:

"Your payment session has expired for security. Please refresh the page
and try again."

You can see the code I've written here:

https://github.com/cghobbs/pacific-commuter/blob/recurly/libs/recurly.js

Any ideas on what I'm doing wrong?

My best guess is it has something to do with the timestamp but I can't
figure out what.


Reply to this email directly or view it on GitHub:
#34

from recurly-js.

cghobbs avatar cghobbs commented on August 10, 2024

@shermany thanks for the quick response. That solved the issue with the timestamp error which created a new one for me:

"Invalid signature"

I've copied the code here: https://gist.github.com/2513791

I've printed the signature to the console and it looks to be the correct format. So I'm not sure what's up. Any help is appreaciated.

from recurly-js.

shermany avatar shermany commented on August 10, 2024

Would you mind getting in touch via email? [email protected]

from recurly-js.

cghobbs avatar cghobbs commented on August 10, 2024

Thanks Sean I sent you an email with more details. The help is definitely appreciated!

from recurly-js.

arush avatar arush commented on August 10, 2024

Hi,
Was there a solution to this?

from recurly-js.

thorsent avatar thorsent commented on August 10, 2024

var hmac = crypto.createHmac("sha1", privateKey); // not shakey

from recurly-js.

arush avatar arush commented on August 10, 2024

Hey guys we built a module for this now: https://github.com/brandid/node-recurlyjs-sign

from recurly-js.

thorsent avatar thorsent commented on August 10, 2024

Now you tell me ;)

from recurly-js.

 avatar commented on August 10, 2024

My issue is similar and looking for direction...
It happens onsubmit of the recurly form and yields this error:
formerror

I searched for this specific error and can't seem to find insight about it.. I'm thinking about reconnecting my payment credentials..

Error verbatim:

The following errors were encountered: This form has expired. Please refresh and try again

The file where it all goes down is here: https://github.com/App-Innovators/pouchdata/blob/master/public/jump.html

from recurly-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.