---
schema_version: "1"
id: b04afd2d4c3f1a79439353306c38cbf4392d6808d86ce7943acb2cf39fdc41f0
title: Connect a Payment Gateway to Store Checkout
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/salesforce-commerce/guides/d2c-commerce/b2b-b2c-comm-checkout-connect-gateway.md
canonical_url: https://developer.salesforce.com/docs/commerce/salesforce-commerce/guide/b2b-b2c-comm-checkout-connect-gateway.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 54009f645e03972fcac33e50dd28ef5a03714fc8d5413232d895a640270ee77b
products:
  - B2B Commerce Developer Guide
  - Salesforce APIs
---
# Connect a Payment Gateway to Store Checkout

The last steps in implementing payment processing include connecting the payment gateway to checkout in your store.

Set up server- or client-side payment processing. This procedure applies only to custom checkout.

1.  Connect your payment gateway to your checkout using the integrated store service.

    1.  In the navigation sidebar, select a store from the **Store** dropdown.

    2.  Click **Settings | Checkout**, and then click the **Payments** tab.

    3.  Choose the payment service that you want to use.

- To use Salesforce Payments, on the Salesforce Payments tile, click **Configure**. Then, set up the merchant account. If you don’t see a Salesforce Payments tile, contact your Salesforce account executive.
- To use a third-party service, on the Alternate Provider tile, click **Select Provider**. Then, select a gateway provider from a third-party package. If no adapter is listed, get one from AppExchange or create one. Check the listings for a package that supports a B2B or D2C store.
  After you configure your payment service, confirm that your store’s Checkout page is configured correctly. See Customize Payments on a Store Checkout Page.

To integrate a third-party service without using AppExchange, see Reference Implementations for B2B Commerce and Reference Implementations for D2C Commerce. To create a custom package, see Payments Integration in the B2B Commerce Developer Guide.

2.  Test your payment gateway to make sure that it’s working as expected. If you have trouble, check the Payment Gateway logs in your Commerce app. The PaymentGatewayLogs object creates records for every payment attempt and provides information when errors occur.

3.  Publish your store.
