Skip to content

Instantly share code, notes, and snippets.

@hideokamoto
Last active July 30, 2019 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hideokamoto/ecf17e4ced85f396747230e8f93de35c to your computer and use it in GitHub Desktop.
Save hideokamoto/ecf17e4ced85f396747230e8f93de35c to your computer and use it in GitHub Desktop.
Stripe.invoices.update(
'in_xxxx',
{
metadata: {
order_id: '6735'
},
statement_descriptor: 'statement descriptor',
alternate_statement_descriptors: {
kanji: '漢字',
kana: 'カナ'
}
})
.then(result => {
console.log(result)
})
(node:71824) UnhandledPromiseRejectionWarning: Error: Received unknown parameter: alternate_statement_descriptors
at Constructor._Error (/Users/development/node_modules/stripe/lib/Error.js:12:16)
at Constructor (/Users/development/node_modules/stripe/lib/utils.js:164:17)
at new Constructor (/Users/development/node_modules/stripe/lib/utils.js:164:17)
at Function.StripeError.generate (/Users/development/node_modules/stripe/lib/Error.js:57:14)
at IncomingMessage.res.on (/Users/development/node_modules/stripe/lib/StripeResource.js:165:39)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1081:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
(node:71824) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:71824) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment