Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Plugin stripe - error has occurred in the Stripe plugin REST handler

default discord avatar
NF012 years ago
4

HI @jacobsfletch , I'm using your super stripe plugin for payload (thanks for the deployment) and unfortunately I'm having an error that I can't understand very well



When I do a request via postman on my url "localhost:3000/api/stripe/rest", I have this error:


{
    "message": "An error has occurred in the Stripe plugin REST handler: 'TypeError: Cannot read properties of undefined (reading 'bind')'"
}


with this config:



 plugins: [
    stripePlugin({
      stripeSecretKey: process.env.PRIVATE_STRIPE,
      logs: true,
      sync: [
        {
          collection: "customers",
          stripeResourceType: "customers",
          stripeResourceTypeSingular: "customer",
          fields: [
            {
              fieldPath: "email", // my unique field in my collection
              stripeProperty: "email", 
            },
          ],
        },
      ],
    }),
  ],



Thanks in advance for you help and thank again for the implementation of this plugin !

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.