Last active
July 30, 2019 10:11
-
-
Save hideokamoto/ecf17e4ced85f396747230e8f93de35c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stripe.invoices.update( | |
'in_xxxx', | |
{ | |
metadata: { | |
order_id: '6735' | |
}, | |
statement_descriptor: 'statement descriptor', | |
alternate_statement_descriptors: { | |
kanji: '漢字', | |
kana: 'カナ' | |
} | |
}) | |
.then(result => { | |
console.log(result) | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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