Cert++
Close

Payment gateway records and store mapping

Key Takeaway

A store uses a payment gateway at checkout only after a StoreIntegratedService record maps the PaymentGateway Id to that store through the Integration field.

A payment gateway in B2B Commerce is a small chain of records that tells Salesforce how to reach an external payment processor. You build the chain first and then map it to a store, because a store can't use the gateway at checkout until that mapping exists.

The chain of records

The chain starts with an Apex adapter class, and each later record points to the one before it.

  1. The Apex adapter class talks to the external gateway.
  2. PaymentGatewayProvider points to the adapter class through ApexAdapterId. As a setup entity, PaymentGatewayProvider defines the connection to a payment gateway Apex adapter.
  3. PaymentGateway points to the PaymentGatewayProvider through PaymentGatewayProviderId. The PaymentGateway record represents the connection to an external payment gateway and holds the connection details.
Salesforce Accredited B2B Commerce Developer Professional Study Guide

Checklist progress

0/124Learned

Manage data intelligently with regard to relationships and integrations as needed to support getting a B2B Storefront established and running

0/29

Product bundles versus product sets

Learn this concept

Tiered and volume pricing data model

Learn this concept

WebCart and its related cart objects

Learn this concept

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Salesforce Accredited B2B Commerce Developer Professional studiers.