vapor-community / Stripe
Licence: mit
Stripe library for Vapor
Stars: ✭ 151
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Stripe
Vue Stripe Payment
Vue wrapper for jquery.payment by stripe
Stars: ✭ 11 (-92.72%)
Mutual labels: stripe, payment
Jetstream Cashier Billing Portal
Jetstream Cashier Billing Portal is a simple scaffolding billing portal to manage subscriptions, invoices and payment methods, built on top of Jetstream & Cashier Register.
Stars: ✭ 45 (-70.2%)
Mutual labels: stripe, payment
Payum
PHP 7+ Payment processing library. It offers everything you need to work with payments: Credit card & offsite purchasing, subscriptions, payouts etc. - provided by Forma-Pro
Stars: ✭ 1,665 (+1002.65%)
Mutual labels: stripe, payment
Terraform Provider Stripe
A Terraform Provider for Stripe
Stars: ✭ 143 (-5.3%)
Mutual labels: stripe-api, stripe
Stripe Rs
Moved to https://github.com/wyyerd/stripe-rs.
Stars: ✭ 16 (-89.4%)
Mutual labels: stripe-api, stripe
Ecommerce
We're going to take you step-by-step to build a modern, fully open-source, eCommerce web application using Python, Django, Bootstrap, Javascript, and more.
Stars: ✭ 980 (+549.01%)
Mutual labels: stripe, card
Payumbundle
Payum offers everything you need to work with payments. From simplest use cases to very advanced ones.
Stars: ✭ 509 (+237.09%)
Mutual labels: stripe, payment
Vue Stripe
Stripe Checkout & Elements for Vue.js
Stars: ✭ 669 (+343.05%)
Mutual labels: stripe, payment
Payumlaravelpackage
Payum offers everything you need to work with payments. From simplest use cases to very advanced ones.
Stars: ✭ 121 (-19.87%)
Mutual labels: stripe, payment
Pinax Stripe
a payments Django app for Stripe
Stars: ✭ 650 (+330.46%)
Mutual labels: stripe-api, stripe
Stripity stripe
An Elixir Library for Stripe
Stars: ✭ 597 (+295.36%)
Mutual labels: stripe-api, stripe
Stripe Demo Connect Roastery Saas Platform
Roastery demo SaaS platform using Stripe Connect
Stars: ✭ 33 (-78.15%)
Mutual labels: stripe-api, stripe
Stripe Connect Rocketrides
Sample on-demand platform built on Stripe: Connect onboarding for pilots, iOS app for passengers to request rides.
Stars: ✭ 426 (+182.12%)
Mutual labels: stripe-api, stripe
Vue Stripe Elements
A Vue 2 component collection for StripeElements
Stars: ✭ 498 (+229.8%)
Mutual labels: stripe-api, stripe
Payumserver
Payment processing microservice. Written in Symfony4
Stars: ✭ 103 (-31.79%)
Mutual labels: stripe, payment
Stripe
StripeKit
Stripe is a Vapor helper to useUsage guide
In your Package.swift
file, add the following
.package(url: "https://github.com/vapor-community/stripe.git", from: "8.0.0")
To use Stripe in your Vapor application, set the environment variable for you Stripe API key
export STRIPE_API_KEY="sk_123456"
Now you can access a StripeClient
via Request
.
struct ChargeToken: Content {
var token: String
}
func chargeCustomer(_ req: Request) throws -> EventLoopFuture<HTTPStatus> {
return try req.content.decode(ChargeToken.self).flatMap { charge in
return req.stripe.charge.create(amount: 2500, currency: .usd, source: charge.stripeToken).map { stripeCharge in
if stripeCharge.status == .success {
return .ok
} else {
print("Stripe charge status: \(stripeCharge.status.rawValue)")
return .badRequest
}
}
}
}
License
Stripe is available under the MIT license. See the LICENSE file for more info.
Want to help?
Feel free to submit a pull request whether it's a clean up, a new approach to handling things, adding a new part of the API, or even if it's just a typo. All help is welcomed! 😀
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].