---
schema_version: "1"
id: 2c05a93d325370002d4c9d28c76616e360c3172bbf488f276c0fac2031018b97
title: Payment Architecture
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-integration.md
canonical_url: https://developer.salesforce.com/docs/commerce/salesforce-commerce/guide/b2b-b2c-comm-payment-integration.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c09a4bc3fac6e7a3196f6966603a6244ad5bc4aca8718064d5f0a3ff58879cd6
products:
  - B2B Commerce Developer Guide
  - Salesforce APIs
---
# Payment Architecture

The Salesforce Payment Adapter framework fetches tokens and authorizations from service providers during checkout.

| Required Editions                                                       |
| ----------------------------------------------------------------------- |
| Available in: **Enterprise**, **Unlimited**, and **Developer** Editions |
| Available in: B2B Commerce                                              |

A shopper UI action triggers the SetPaymentMethod, which interacts with an integrated third-party payment provider to reserve funds.

![Diagram of payment integration flow](https://developer.salesforce.com/media/d2c-commerce/payment_tokenizatino.png)

After the shopper reviews and approves the order, the PlaceOrder API completes the sale.

![Diagram of place order flow.](https://developer.salesforce.com/media/d2c-commerce/place_order.png)

Integration packages for payment providers are interoperable across the B2B Commerce solution and Salesforce Order Management.

![Diagarm of payment gateway flows.](https://developer.salesforce.com/media/d2c-commerce/payment_gateway_flows.png)
