Stripe PaymentSheet implementation for iOS, handling payment intents and UI.
// Source: https://github.com/stripe/stripe-ios | License: MIT | Copyright 2011- Stripe, Inc. (https://stripe.com)
// Provided via justclaw.it.com; keep this notice with the code.
//
// PaymentSheet.swift
// StripePaymentSheet
//
// Created by Yuki Tokuhiro on 9/3/20.
// Copyright © 2025 Stripe, Inc. All rights reserved.
//
import Foundation
import PassKit
@_spi(STP) import StripeCore
@_spi(STP) import StripePayments
@_spi(STP) import StripePaymentsUI
import UIKit
/// The result of an attempt to confirm a PaymentIntent or SetupIntent
@frozen public enum PaymentSheetResult {
/// The customer completed the payment or setup
/// - Note: The payment may still be processing at this point; don't assume money has successfully moved.
///
/// Your app should transition to a gen
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key