Comments (5)
I'm not sure what the error is. How is this related to stripe exactly? Gonna need some more info. @apps4everyone
from stripe-kit.
Hey @Andrewangeta, thx for your quick reply. If I am using a fresh new vapor installation with just one route /create-payment-intent (as mentioned in the stripe example on the website) and call this API from my mobile app every 2-4 times Vapor crashes with this example above.
from stripe-kit.
You'll need to provide some more info. Have you stepped through the debugger to see what line is causing the crash? The crash is in NIO but the snippet you have isn't helping.
from stripe-kit.
it looks like the problem was the missing promise. If I use:
let promise = req.eventLoop.makePromise(of: PaymentIntentResponse.self) and do then the 'req.stripe.paymentIntents.create' everything looks good so far. I will test tomorrow and if there is no more problems i will close this ticket. thx for your help...
from stripe-kit.
@apps4everyone Also you don't need to have all the nil
s in the route. They have default values.
from stripe-kit.
Related Issues (20)
- Send post-payment Invoices with Checkout HOT 2
- Value required for key 'data.object.refunds'. HOT 2
- Failing to decode StripeEvent HOT 5
- Support for queries
- Add support for Treasury APIs
- Add support for Financial Connections APIs
- Add support for Tax APIs
- Error decoding response when retrieving a price for a product. HOT 3
- SwiftCrypto Platform Version Issue HOT 3
- customerCreation -> ifRequired throws error in Stripe dashboard HOT 1
- Decoding issue for response of checkout session HOT 1
- US Bank Account Enum for Charges HOT 3
- Ephemeral Keys? HOT 2
- No ID in CustomerRoutes update method
- Incorrect Ephemeral Keys Endpoint HOT 1
- ChargePaymentMethodDetailsType of type link does not exist
- Mistake in the mapping of allowed documents for verificationSessions/Reports
- CustomerSearchResult Data field is incorrect HOT 1
- AddHeaders not available on UsageRecordRoutes
- Incorrect API paths in TerminalReaderRoutes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe-kit.