Stripe Billing Connector for Salesforce CPQ を設定する
コネクターを設定して使用します。
The Stripe Billing app for Salesforce CPQ syncs your products, prices, accounts, and orders from Salesforce to Stripe Billing. After you set up the app and create data mappings, the service syncs this information from Salesforce and completes the collection and provisioning workflows in Stripe Billing.
Install the app
The app is a managed package that you install from the Salesforce AppExchange onto your Salesforce account.
During the installation process, choose Install for Admins Only. Follow the on-screen prompts and approve third-party access. In Salesforce, search for “Stripe Billing app” to continue the setup process.
In the Stripe Billing app, follow the on-screen steps to:
- Salesforce 環境と Stripe のアカウント間のアクセスを許可します。
- Salesforce と Stripe 間のデータマッピング方法を定義します。
- 同期の設定を構成する。
Salesforce と Stripe 間のデータマッピング方法を定義する
データマッピングの定義のステップを応用して、Salesforce オブジェクトのフィールドを Stripe オブジェクトの対応するフィールドにマッピングします。たとえば、価格表エントリーが従量制かライセンス制かを格納するカスタムフィールドの場合、そのフィールドを Stripe Price
オブジェクトの recurring.usage_type にマッピングするように指定します。
The app automatically maps the following Salesforce objects to the corresponding Stripe objects:
Salesforce オブジェクト | Stripe オブジェクト |
---|---|
Product2 | Product (商品) |
Price book entry | Price (価格) |
Account | Customer (顧客) |
注文 | Subscription Schedule (サブスクリプションスケジュール) と Subscription (サブスクリプション) |
Order product | サブスクリプションアイテム |
You can also map information within Salesforce objects or to metadata fields within corresponding Stripe objects by defining field defaults and custom mappings.
同期の設定を構成する
同期の設定の構成ステップを使用して以下を指定します。
- 同期レコードの保存: Salesforce で保存する同期レコードの数。
- Start date: After you enable live syncing, the app begins to sync data for activated orders to Stripe on or after this date. You can specify a date in the past.
- Sync filters: Adds filters to determine when to sync Salesforce orders, accounts, products, and pricebook entries. By default, the app syncs orders when
Status = Activated
, but you can customize this behavior for your workflows.
設定が完了して、システムで本番環境の同期を有効にすると、有効化された新しい注文では自動的に以下が行われます。
- Stripe で、注文に対応するアカウントの
Customer
オブジェクトを作成または更新します。Stripe の顧客のid
は、Salesforce のアカウントでStripe ID
というカスタムフィールドとして使用できるようになります。 - 注文に含まれている商品ごとに、Stripe で商品と価格を作成または更新します。
- 有効化された注文のサブスクリプションスケジュールを Stripe で作成します。
- Salesforce で
Sync Record
カスタムオブジェクトを作成して、同期の状況と発生したエラーを示します。
同期の制約事項
- 返金: Salesforce オブジェクトの Stripe ダッシュボードのリンクを使用して、Stripe で返金を発行できます。
- 決済およびサブスクリプションのステータス: Stripe ダッシュボードのリンクを使用して、注文のサブスクリプションステータス、支払い情報、および関連する請求書を表示できます。
- 税金: 税金情報は Salesforce と Stripe 間で同期されません。請求書で税金を徴収するには、Stripe Tax で税金を自動計算してサブスクリプションか、注文の Stripe 請求書に適用します。
本番環境の同期を有効にする
インストール後のフローの最後のステップでは、すぐにまたは後で、本番環境の同期の有効化を選択できます。本番環境の同期により、システムでは Salesforce の有効注文を Stripe にリアルタイムでプルできるようになります。注文の本番環境の同期は、いつでも、アプリケーションの Sync Preferences (同期の設定) タブで有効または無効にすることができます。
本番環境の同期が無効になっていても、個々の注文を手動で同期してシステムをテストすることができます。