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)
- 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
- Initting objects does not have nil defaults.
- Cannot create a PaymentLink
- Cannot retrieve connected account (using old URL) HOT 3
- Missing enum on PaymentMethodCardNetwork HOT 1
- previousAttributes on Webhook events HOT 14
- EventObject is not actually Encodable
- Failing to decode EventObject of type 'application'
- Subscription schedule applicationFeePercent incorrect type
- Subscription schedule fromSubscription incorrect type
- Subscription schedule phase prorationBehavior missing case
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.