Git Product home page Git Product logo

adonis-stripe's People

Contributors

ammezie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

adonis-stripe's Issues

Bug webhook constructEvent signature verification failed

Description

bug with stripe.webhooks.constructEvent
I need to use the webhook but it doesn't work in my opinion it's related to the body parser

try {
  event = stripe.webhooks.constructEvent(request.body(), request.header('stripe-signature'), Env.get('STRIPE_WEBHOOK_SECRET'))
} catch (err) {
  Logger.error(`⚠️  Webhook signature verification failed.`, err.message)
  return response.badRequest()
}

Package version

1.0.5

Error Message & Stack Trace

⚠️ Webhook signature verification failed. No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe? https://github.com/stripe/stripe-node#webhook-signing

Relevant Information

Config & Contract files are not copied when running node ace configure

Description

Bug: Template stripe.ts files are not copied when running node ace configure @mezielabs/adonis-stripe

Package version

adonis-stripe 1.0.4

Error Message & Stack Trace

Error stack trace:

node ace configure @mezielabs/adonis-stripe
...
UnhandledPromiseRejectionWarning: Error: Template file not found: <local-path>/node_modules/@mezielabs/adonis-stripe/build/templates/stripe.txt

Actual paths: ../templates/config/stripe.txt & ../templates/contracts/stripe.txt

Relevant Information

I think you might've forgot to update the file paths in the command script. Anyway, I've resolved the issue by manually copy-pasting the two files into my project. And now it works fine! Thank you for the package

Configure Error

Description

Showing error at configuration time

Package version

[email protected]

Error Message & Stack Trace

/Users/abiliocoelho/www/dev/stripe/node_modules/@adonisjs/core/build/src/Ignitor/SignalsListener/index.js:50
this.application.logger.fatal(error, '"uncaughtException" detected. Process will shutdown');
^

TypeError: Cannot read properties of undefined (reading 'fatal')
at process. (/Users/abiliocoelho/www/dev/stripe/node_modules/@adonisjs/core/build/src/Ignitor/SignalsListener/index.js:50:37)
at Object.onceWrapper (node:events:514:26)
at process.emit (node:events:394:28)
at process.emit (/Users/abiliocoelho/www/dev/stripe/node_modules/source-map-support/source-map-support.js:516:21)
at process._fatalException (node:internal/process/execution:170:25)
at processPromiseRejections (node:internal/process/promises:246:11)
at processTicksAndRejections (node:internal/process/task_queues:97:32)

Relevant Information

I'm using Adonis version 5, I've done all the steps for installation, but when setting up this error appears.

stripe as peer-dependency

Description

Not a bug, but I recommend including stripe as a peer-dependency, not as dependency. When I installed your package, the installed stripe package is at v8.222, when the latest version currently is v10.7 at the time of writing.

Given that this is a wrapper package that provides a stripe singleton instance, I think this should be safe to implement.

Package version

adonis-stripe: 1.0.5

Error Message & Stack Trace

Relevant Information

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.