stripe-node
stripe-node copied to clipboard
Node.js library for the Stripe API.
fix: types of webhooks, Webhooks is not a class is a module, and is write and long use with 'w' not with 'W' Sorry i did this directly from github,...
### Describe the bug Payment intent search using query for customer is not working. It doesn't return valid response object for a specific customer. This happens only if the query...
### Describe the bug After implementing a webhook endpoint in a typescript express project, I first tested locally using the Stripe CLI. Everything worked as expected. I then created automated...
`invoices.retrieveUpcoming` returns `Stripe.Invoice`, but the upcoming invoice doesn't return an `id`. `id` should either be optional or this should be a seperate type.
### Describe the bug According to https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-id, `invoice.id` should be required. As I am upgrading to v10.0.0, it looks like it was made optional https://github.com/stripe/stripe-node/blob/0cd1aa77f2a14f4446bc6190c908e78244f19c3b/types/2022-08-01/Invoices.d.ts#L12 ### To Reproduce Perform any...
### Describe the bug As per API docs issuing should allow to manage `FundingInstructions` https://stripe.com/docs/api/issuing/funding_instructions/object?lang=node However neither v9.16.0 nor v10.0.0 have that API interface exposed  > VSCode error: Property...
this pr changes readme esm example to use top level await
`event.data.object` is currently specified as an empty interface, which seems invalid. My understanding of the API is that it should be an alternative of all possibilities. Relevant code: https://github.com/stripe/stripe-node/blob/b2d32ef3a987b3c740bbc44c99a8209a92c3a5ee/types/2019-12-03/Events.d.ts#L56-L66
### Describe the bug ```typescript event.type === "payment_intent.created" // correct event.type === "payment_intent.not_exist_type" // incorrect - should not compile ``` The `Event` interface `type` field should be string literals instead...
We're using the stripe node client 8.71.0 on an AWS Lambda running node 12.x. A stripe customers.list call is called first thing when the lambda executes. 33% of the time...