Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Salesforce Order Management
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Set Up Payment Gateways with StoreIntegratedService

          Set Up Payment Gateways with StoreIntegratedService

          Order on Behalf Of can take payment for the order and use the Commerce Webstore Payment Token and Commerce Webstore Checkout Payments APIs. To let your store access these APIs, use the StoreIntegratedService entity to associate your WebStore with the Payment Gateway.

          1. Obtain the Payment Gateway ID of the existing Payment Gateway used for the site you’re connecting to.
            sf data query --query
            "SELECT Id, PaymentGatewayName, PaymentGatewayProviderId, Status
              FROM PaymentGateway"
          2. Ensure the Payment Gateway supports tokenize and authorization. If not, an update is required.
          3. Obtain the ID of the WebStore that you’re configuring. Add CurrencyIsoCode to multi-currency orgs to get the right ID.
            sf data query --query
            "SELECT Id, ExternalReference, Name, Type, DefaultTaxLocaleType
              FROM WebStore"
          4. Create a StoreIntegratedService entity.
            StoreIntegratedService sis = new StoreIntegratedService(
                StoreId = '0ZERN00000009qu4AA', // WebStore Id (step 3)
                Integration = '0b0RO000000009FYAQ', // Payment Gateway Id (step 1)
                ServiceProviderType = 'Payment');
            insert sis;
           
          Loading
          Salesforce Help | Article