{"action":"closed","issue":{"url":"https://api.github.com/repos/stripe/stripe-node/issues/153","labels_url":"https://api.github.com/repos/stripe/stripe-node/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/stripe/stripe-node/issues/153/comments","events_url":"https://api.github.com/repos/stripe/stripe-node/issues/153/events","html_url":"https://github.com/stripe/stripe-node/issues/153","id":59291027,"number":153,"title":"Wiki page out of date?","user":{"login":"brutalhonesty","id":1609870,"avatar_url":"https://avatars.githubusercontent.com/u/1609870?v=3","gravatar_id":"","url":"https://api.github.com/users/brutalhonesty","html_url":"https://github.com/brutalhonesty","followers_url":"https://api.github.com/users/brutalhonesty/followers","following_url":"https://api.github.com/users/brutalhonesty/following{/other_user}","gists_url":"https://api.github.com/users/brutalhonesty/gists{/gist_id}","starred_url":"https://api.github.com/users/brutalhonesty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brutalhonesty/subscriptions","organizations_url":"https://api.github.com/users/brutalhonesty/orgs","repos_url":"https://api.github.com/users/brutalhonesty/repos","events_url":"https://api.github.com/users/brutalhonesty/events{/privacy}","received_events_url":"https://api.github.com/users/brutalhonesty/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-27T20:38:55Z","updated_at":"2015-02-27T23:16:52Z","closed_at":"2015-02-27T23:16:52Z","body":"Within the https://github.com/stripe/stripe-node/wiki/Passing-Options wiki page, refund() is the method shown but according to https://stripe.com/docs/api/node#create_refund, it should be createRefund().\r\n\r\nOn that note, should the syntax for it be the following?\r\n\r\n```javascript\r\nstripe.charges.createRefund(charge.id, {\r\n   metadata: {\r\n     'description': 'Some description.'\r\n   }\r\n}, function (error, refund) {\r\n  if(error) {\r\n    // Handle error.\r\n  }\r\n  // Handle refund.\r\n});\r\n```\r\n\r\nMy current error using the above syntax is:\r\n\r\n```bash\r\n/path/to/project/node_modules/stripe/lib/StripeMethod.js:57\r\n      throw new Error(\r\n            ^\r\nError: Stripe: Unknown arguments ([object Object],function (error, refund) {\r\n      if(error) {\r\n        return cb(error);\r\n      }\r\n      refunds.push(refund);\r\n      return cb(null);\r\n    }). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options.\r\n    at Object.createRefund (/path/to/project/node_modules/stripe/lib/StripeMethod.js:57:13)\r\n```\r\n"}}