---
schema_version: "1"
id: fdead0a773d8eb7df5e8e77dc4eb807301382802c3557c0175600c5c22013c5f
title: Set Up Payment Gateways with StoreIntegratedService
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/om_impl_set_up_payment_gateways.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.om_impl_set_up_payment_gateways.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 01a289a89b01ab3d0b329d69c3365b3c8b74bd3cfe4b4da5f7e4d2d7b873e345
description: 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.
products:
  - Commerce
  - Salesforce Order Management
release: "264"
---
# 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;`

#### See Also

- [Implement Order Management](https://help.salesforce.com/s/articleView?id=commerce.om_impl_intro.htm&release=264.0.0&type=5 "Order Management can run with all Commerce products. After configuration, there are some additional steps B2C Commerce orgs must take to link their stores with Order Management.")