---
schema_version: "1"
id: b01c4b791b289ea6bc5c02882db403bed83a354980583862a5a975d566b9f1f3
title: Commerce Payment Gateway
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-payment-gateway.md
canonical_url: https://developer.salesforce.com/docs/commerce/salesforce-commerce/guide/b2b-b2c-comm-payment-gateway.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 57f549394bcc92357269a74f9862040a4b71fb48f610269725ee568d9cb5d8b9
products:
  - B2B Commerce Developer Guide
  - Salesforce APIs
---
# Commerce Payment Gateway

Payment Integration in checkout is built on the foundation of the commerce payment framework in Salesforce that is used in other products in the Salesforce portfolio such as Revenue Cloud and Order Management. This framework allows you to author an Apex class that acts as an adapter between Salesforce and the payment gateway. The framework handles the creation of payment specific records in the Salesforce system, logging calls to the gateway for auditing, idempotency in a secure, PCI-compliant fashion.
