# Stripe App for Salesforce

This documentation outlines how to integrate Stripe with Salesforce, enabling seamless payment processing, billing management, and data synchronization. The Stripe app for Salesforce Platform acts as an integration builder, allowing you to leverage Salesforce Flow Builder and Apex to create custom payment workflows, implement comprehensive billing integrations, and automate subscription management.

## Key Features and Capabilities

*   **Salesforce Integration:** Connects Salesforce with Stripe to streamline revenue operations and enhance online commerce.
*   **Flow Builder and Apex Support:** Enables the creation of custom payment workflows and integrations using Salesforce's native tools.
*   **Stripe Billing Data Model:** Provides native representations of Stripe billing objects as custom objects within Salesforce, with pre-built page layouts and default mapping to Salesforce Sales Cloud objects.
*   **1-Click Billing Data Sync:** Facilitates real-time or scheduled synchronization of Stripe billing data to Salesforce.
*   **Extensibility:** Offers modular architecture for expanding functionality as business requirements grow.

## Core Components and Extensions

The Stripe app for Salesforce Platform serves as the foundation for various extensions and specific integrations:

### Stripe App for Salesforce Platform

*   **Overview:** The core integration builder for connecting Stripe and Salesforce.
*   **Installation:** Guides users through the installation process on the Salesforce AppExchange.
*   **Configuration:** Details how to configure the app, including connecting Stripe accounts and setting up data synchronization.
*   **Training & Code Examples:** Provides resources for developers, including agnostic code examples and class invocations for creating customers, payment intents, and more.
*   **Event Configuration:** Explains how to configure Stripe webhooks to capture events within Salesforce.

### Salesforce Billing Extension

*   **Overview:** An extension that enhances Stripe app for Salesforce Platform to process payments directly on invoices generated from Salesforce Billing.
*   **Installation:** Instructions for installing the Salesforce Billing Extension.
*   **Configuration:** Steps to configure the Salesforce Billing Extension, including assigning permission sets and updating global value sets.
*   **Best Practices:** Guidance on using Stripe with Salesforce Billing, including data import and payment method management.

### Stripe Billing Flows Extension

*   **Overview:** An extension that automates subscription schedule creation based on Salesforce Order activation using out-of-the-box flows.
*   **Installation:** Steps to install the Stripe Billing Flows Extension.
*   **Configuration:** Details on configuring the pre-built flows for subscription management, including primary objects, amendment handling, and pricing structures.

### Stripe App for Salesforce B2C Commerce Cloud

*   **Overview:** Facilitates payment integration between Commerce Cloud storefronts and Stripe payments.
*   **Component Overview:** Describes the architecture and components of the Salesforce B2C Commerce Cloud cartridge.
*   **Implementation Guide:** Provides instructions for installing and configuring the Stripe app for Salesforce B2C Commerce.
*   **User Guide:** Explains how to use the Stripe app for Salesforce Commerce Cloud for day-to-day functionality.
*   **Testing:** Guidance on testing the integration with Stripe and Salesforce B2C Commerce.

### Stripe App for Salesforce Order Management

*   **Overview:** A managed package for enabling payment capture and refund for order servicing use cases within Salesforce Order Management.
*   **Installation:** Instructions for installing the Stripe app for Salesforce Order Management.
*   **Operations and Maintenance:** Details core concepts like Payment Intents and Payment Authorizations.
*   **Testing:** Best practices for testing the integration with Stripe and Salesforce B2C Commerce.

## Getting Started

1.  **Installation:** Begin by installing the core "Stripe app for Salesforce Platform" from the Salesforce AppExchange. Depending on your needs, you may also install extensions like the Salesforce Billing Extension or Stripe Billing Flows Extension.
2.  **Configuration:** Connect your Stripe account and configure data synchronization and event handling.
3.  **Development & Integration:** Utilize the provided code examples and training resources to build custom workflows and integrate Stripe functionalities into your Salesforce environment.

This comprehensive suite of tools empowers businesses to leverage the full potential of both Salesforce and Stripe for efficient and robust payment and billing management.