You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jeffplays2005stripe.resources.Checkout isn't like stripe.resources.Product because checkout isn't a resource itself, it is a "namespace" that contains other resources like "checkout session".
Can you say a little bit about what you are hoping to accomplish? Using require('stripe') directly isn't really part of the public interface of the library -- we usually expect users to stripe = require('stripe')("<API_KEY>") and access things on the constructed stripe client, rather than interacting directly with the "building blocks" as you seem to be doing.
I'm trying to use this in jest for route testing for a route that has the method, stripe.checkout.sessions.list.
I'm trying to change the function so that it can change the output of the data list.
E.g.
Describe the bug
Seems to be empty compared to other prototypes.
To Reproduce
Expected behavior
{
create: [Function (anonymous)],
retrieve: [Function (anonymous)],
list: [Function (anonymous)],
expire: [Function (anonymous)],
listLineItems: [Function (anonymous)]
}
Code snippets
No response
OS
macOS
Node version
Node v20.0.0
Library version
14.23.0
API version
2022-08-01
Additional context
No response
The text was updated successfully, but these errors were encountered: