continuous-software / node-authorize-net

Node.js SDK for Authorize.net payment gateway.
https://authorize.net/
11 stars 24 forks source link

"other" on authCaptureTransaction #1

Closed realtux closed 10 years ago

realtux commented 10 years ago

Doesn't appear to work.

I've tried both of these:

authorize.authCaptureTransaction(
  charge_amount,
  req.body.card,
  req.body.expy,
  req.body.expm, {
    payment : {
      creditCard : {
        cardCode : req.body.cvv
      }
    },
    billTo : {
      firstName : req.body.first_name,
      lastName : req.body.last_name
    }
  }
)

and

authorize.authCaptureTransaction(
  charge_amount,
  req.body.card,
  req.body.expy,
  req.body.expm, {
    cardCode : req.body.cvv,
    firstName : req.body.first_name,
    lastName : req.body.last_name
  }
)
realtux commented 10 years ago

I found an example in your test file. The docs weren't clear what the syntax was.

lorenzofox3 commented 10 years ago

yep this a in progress project: abstract different payement gateways in a unique interface -42-cent - If you want to use the direct sale only, I suggest you use 42-cent, the API is more accurate and easy to use. You can see the current API definition here

realtux commented 10 years ago

Oh that does look better. I did eventually get everything working, but, it didn't take all that long. I think I'll use that instead.