Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Images.xcassets
Localizations
AppDelegate.swift
Basic Integration.entitlements
BrowseProductsViewController.swift
Buttons.swift
CheckoutRowView.swift
CheckoutViewController.swift
EmojiCell.swift
EmojiCheckoutCell.swift
Info.plist
MyAPIClient.swift
PaymentContextFooterView.swift
README.md
SettingsViewController.swift

README.md

Basic Integration

Basic Integraion Example App

This example app demonstrates how to build a payment flow using our pre-built UI component integration (STPPaymentContext).

For a detailed guide, see https://stripe.com/docs/mobile/ios/basic

To run the example app:

  1. If you haven't already, sign up for a Stripe account (it takes seconds).
  2. Open ./Stripe.xcworkspace (not ./Stripe.xcodeproj) with Xcode
  3. Fill in the stripePublishableKey constant in ./Example/Basic Integration/CheckoutViewController.swift with your Stripe test "Publishable key". This key should start with pk_test.
  4. Head to example-ios-backend and click "Deploy to Heroku". Provide your Stripe test "Secret key" as the STRIPE_TEST_SECRET_KEY environment variable. This key should start with sk_test.
  5. Fill in the backendBaseURL constant in ./Example/Basic Integration/CheckoutViewController.swift with the app URL Heroku provides (e.g. "https://my-example-app.herokuapp.com")

After this is done, you can make test payments through the app and see them in your Stripe dashboard.

Head to https://stripe.com/docs/testing#cards for a list of test card numbers.

You can’t perform that action at this time.