# Stripe App for Salesforce

This documentation outlines the integration of Stripe payment processing with various Salesforce products, including Salesforce Platform, Salesforce Billing, and Salesforce B2C Commerce Cloud. It covers installation, configuration, code examples, and best practices for leveraging Stripe's capabilities within the Salesforce ecosystem.

## Key Components and Features:

*   **Stripe App for Salesforce Platform:** The foundational integration that allows access to the Stripe API through Salesforce Flow Builder and Apex. It supports custom payment workflows, comprehensive billing integrations, and subscription management automation.
    *   **Agnostic Code Examples:** Provides flexible code examples for making generic, agnostic calls to Stripe's RESTful API, enabling a layer of abstraction.
    *   **Invocable Code Examples:** Offers actionable code examples for essential tasks like creating Stripe customers, initiating checkout sessions, and listing existing customers directly from Salesforce using custom Apex classes.
    *   **Configuration:** Details how to configure the app, including connecting Stripe accounts, subscribing to Stripe events, and managing Stripe billing data synchronization.
    *   **Installation:** Guides users through the installation process on Salesforce AppExchange, including considerations for test and production environments.
    *   **Event Configuration:** Explains how to configure webhooks in Stripe and set up listeners within Salesforce to capture and process Stripe events.

*   **Salesforce Billing Extension:** An extension that enhances the Stripe app for Salesforce Platform, enabling sales teams to process payments on invoices generated from Salesforce Billing.
    *   **Configuration:** Provides steps for configuring the Salesforce Billing Extension, including assigning permission sets, updating global value sets, and adding new payment method buttons.
    *   **Installation:** Details the prerequisites and steps for installing the Salesforce Billing Extension, which includes installing the Stripe app for Salesforce Platform and Salesforce CPQ.
    *   **Overview:** Describes the extension's functionality, including UI-based transaction types (Tokenization, Charge Transaction, Refund Transaction, Bidirectional Data Sync) and API-based transaction types (Void Token, Authorize Transaction).

*   **Stripe Billing Flows Extension:** An unmanaged package that automates subscription schedule creation based on Salesforce Order activation.
    *   **Configuration:** Outlines the default configuration settings for the pre-built flows, including primary objects, object relationships, amendment handling, pricing structure, trigger mechanisms, and line item handling.
    *   **Installation:** Guides users through the installation process, emphasizing the need to install the Stripe app for Salesforce Platform first.
    *   **Overview:** Explains how the extension automates subscription management and allows for customization of existing flows and object mappings.

*   **Stripe App for Salesforce B2C Commerce Cloud:** A cartridge that facilitates payment integration between Commerce Cloud storefronts and Stripe.
    *   **Component Overview:** Describes the architecture and components, including the use of Stripe.js for secure tokenization and the PaymentIntent workflow.
    *   **Implementation Guide:** Provides instructions for setting up Business Manager, assigning site cartridges, and handling metadata.
    *   **Testing:** Offers guidance on testing the integration, including using test credit card numbers and monitoring the Stripe Dashboard.
    *   **User Guide:** Explains day-to-day functionality for merchants and customers, including payment processing, saved payment methods, and data management.

*   **Stripe App for Salesforce Order Management:** A managed package that enables payment capture and refunds for order servicing use cases within Salesforce Order Management.
    *   **Overview:** Introduces the key components of the app, including named credentials, Apex classes for adapters, and protected custom settings.
    *   **Installation:** Details the installation process and configuration steps for the Synchronous Payment Gateway Adapter.
    *   **Operations and Maintenance:** Explains core concepts like Payment Intents and Payment Authorizations within the context of Salesforce Order Management.
    *   **Testing:** Provides steps for testing the integration, including toggling between live and test modes in the Stripe Dashboard and verifying payment statuses.

## Related Topics:

*   **Stripe Apps:** Overview of various Stripe applications.
*   **Stripe for Salesforce:** General information about Stripe integrations with Salesforce.
*   **Salesforce Billing:** Documentation on Salesforce's billing capabilities.
*   **Salesforce B2C Commerce Cloud:** Information on Salesforce's e-commerce platform.
*   **Salesforce Order Management:** Documentation on Salesforce's order management system.