Releases: vapor-community/stripe-kit
Releases · vapor-community/stripe-kit
StripeKit 3.0.1
This patch release fixes #13
StripeKit 3.0.0
-
Updated all routes to match stripes APIs as they currently are for API version
2019-11-05
. -
Added the following APIs:
Mandates
SetupIntents
Capabilities
Early Fraud Warnings
Report Runs
Report Types
StripeKit 2.0.1
Fixed a typo in customer update routes.
StripeKit 2.0.0
Updated to support the latest 2019-11-05 API.
StripeKit 1.0.11
Use release version of AsyncHttpClient.
StripeKit 1.0.10
Fixed decoding for an optional property.
StripeKit 1.0.9
Fixes an issue where we weren't shutting down the AsyncHTTPClient
on deinit
StripeKit 1.0.8
Fixed issue with the Products API
StripeKit 1.0.7
Updated to use latest AsyncHTTPClient
StripeKit 1.0.6
This release adopts the NIO pattern of retuning failed EventLoopFuture
s rather than having throwing functions. So instead of a do
catch
pattern you would opt for something like this instead
stripe.charges.create(amount: 2500,
currency: .usd,
description: "A server written in swift.",
source: "tok_visa")
.flatMap { (charge) -> EventLoopFuture<Void> in
if charge.status == .succeeded {
print("New servers are on the way 🚀")
} else {
print("Sorry you have to use Node.js 🤢")
}
}
.flatMapError { error in
print("Stripe error \(error.message)")
}