Stripe for Salesforce Platform のイベント設定ガイド
Stripe for Salesforce Platform では、Stripe 内で Webhook を自動作成でき、Salesforce 組織向けにリスナーを設定できます。これらの Webhook は、Customer オブジェクトのイベントとして取得されるレコードになります。
- Stripe Event を設定するには、Stripe Connector for Salesforce App ウィザードを立ち上げ、App Launcher (アプリケーションランチャー) > Stripe Universal Connector for Salesforce に移動します。
- イベントを有効にする Stripe アカウントを選択します。
- All Webhook Events (すべての Webhook イベント) をクリックします。
- Stripe Object (Stripe オブジェクト) ドロップダウンをクリックして、イベントを有効にする Stripe オブジェクトを選択します。
- リッスンするイベントを切り替えて、Save (保存) をクリックします。
- イベントが有効にされたアカウントで、Stripe ダッシュボードにログインします。
- Stripe ダッシュボードで、開発者 > Webhook に移動します。これにより、新たに作成されたオンラインエンドポイントが表示されます。
Stripe Event の DLM 操作を使用する
Capture real-time Stripe Events through Webhooks and store them in the custom object “Stripe Events” within Salesforce. Utilize standard Data Lifecycle Management (DLM) triggers to automate interactions between Stripe and Salesforce, leveraging record trigger flows and APEX triggers.
Salesforce フローのトリガーを作成する
Stripe Event 用に、Salesforce のレコードトリガーフローを作成するには、以下のステップを完了します。
- Salesforce のセットアップの Quick Find (クイック検索) ボックスに「Flow」と入力し、フローを選択します。
- New Flow (新規フロー) をクリックします。
- Record-Triggered Flow (レコードトリガーフロー) をクリックし、Create (作成) をクリックします。
- Select Object (オブジェクトの選択) では、Stripe Event(stripeGC__Stripe_Event__c) を選択します。
- Set Entry Conditions (エントリー条件の設定) では、stripeGC__Event_Name__c を使用して、この Salesforce Flow の対象とする Stripe からのイベントを定義します。この例では、Stripe Event Name customer.created が使用されます。
- Done (完了) をクリックします。Stripe Connector for Salesforce Platform にはキャストのフロー操作が含まれます。これらの操作は Salesforce のパッケージに含まれます。
Stripe Event オブジェクトと場所
This Salesforce package comes with a Stripe Events custom object to capture Stripe webhooks. The Stripe Events object tab is found by navigating to App Launcher > Stripe for Salesforce Platform Lightning app. Example Stripe Event Object
