forked from PerfectlySoft/Perfect-Stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Jonathan Guthrie edited this page Apr 5, 2018
·
4 revisions
Note: This is a work in progress and will grow to 100% API coverage over time. Your pull requests will help this!
This API will connect your Server Side Swift application with the Stripe payment gateway.
The master branch of this project currently compiles with Xcode 9.3 or the Swift 4.1 toolchain on macOS and Ubuntu.
Version 4 of Perfect-Stripe is not a drop-in update from version 3. It is a significant refactor to leverage Swift 4's Codable features.
Import the module by including in your Package.swift file.
.Package(
url: "https://github.com/PerfectlySoft/Perfect-Stripe.git",
majorVersion: 4
)
Then use in your file by importing:
import PerfectStripe
Obtain a Stripe API key, and set this for use:
Stripe.apiKey = "<your api key>"