envylabs/vaulted_billing — pull request #5 by hoverlover (2012-02-27 20:44:10+00:00)
Title: NMI doesn't look in the request body for params, but in the query string...

Not sure if the NMI gateway was actually tested against their servers, but they don't look in the request body for params. The pull them from the query string only :thumbsdown: This is ridiculous, but that's how their API works. I've verified this by sending over raw HTTP requests using my account's user name and password, as well as called up their support and they verified this.

These changes simply add an option called `query` that you can stuff the data into, and `VaultedBilling::HTTP` will tack it on to the path if the option is present. This of course broke all of the NMI specs because the VCR cassettes no longer match the request. I don't have time at the moment to fix them, but will hopefully get a chance to soon. I'm assuming you probably don't want to pull this in with broken specs, so you can leave this request and I'll push the spec fixes at a later date.