larafale / mangopay

Mango API Wrapper
22 stars 19 forks source link

createCard missing required Id parameter #6

Closed spacemonkey closed 10 years ago

spacemonkey commented 10 years ago
data=HBalUf7sKsj1NiktfVS7-xCTUZ-sG6KOzoYgGi3ELJt68EgiD8HjMeOVfqL_YllOS4wCy-yiraxeE65tmxOe8A&accessKeyRef=1X0m87dmM2LiwFgxPLBJ&cardNumber=4970100000000154&cardExpirationDate=0216&cardCvx=123
curl -X POST 'https://homologation-webpayment.payline.com/webpayment/getToken' -d 'data=HBalUf7sKsj1NiktfVS7-xCTUZ-sG6KOzoYgGi3ELJt68EgiD8HjMeOVfqL_YllOS4wCy-yiraxeE65tmxOe8A&accessKeyRef=1X0m87dmM2LiwFgxPLBJ&cardNumber=4970100000000154&cardExpirationDate=0216&cardCvx=123'

/myproject/node_modules/mangopay/lib/httpMethod.js:34
      if(!reqData[param] && params[param].required) throw new Error('parameter
                                                          ^
Error: parameter "Id" is required
    at Object.completeRegistration (/myproject/node_modules/mangopay/lib/httpMethod.js:34:59)
    at IncomingMessage.<anonymous> (/myproject/node_modules/mangopay/resources/card.js:83:37)
    at IncomingMessage.emit (events.js:117:20)
    at _stream_readable.js:938:16
    at process._tickDomainCallback (node.js:463:13)
KirillSuhodolov commented 8 years ago

Hello @spacemonkey, @larafale. I get same error with mango.card.create method But Id exists, I haven't any idea how to fix it.

screen shot 2015-12-12 at 10 22 01 screen shot 2015-12-12 at 10 22 15