Use Cases for the CommercePayments Namespace

Review walkthroughs, use cases, and reference material for the CommercePayments platform.

To review CommercePayments class reference docs, go to CommercePayments Namespace.

  • Payment Gateway Adapters

    Payment gateway adapters represent the bridge between your payments platform in Salesforce and an external payment gateway.

  • Payment Authorization Reversal Service

    An authorization reversal is a transaction that negates an authorization by releasing the hold on funds in a customer’s payment method.

  • Tokenization Service

    The credit card tokenization process replaces sensitive customer information with a one-time algorithmically generated number, called a token, used during the payment transaction. Salesforce stores the token and then uses that token as a representation of the credit card used for transactions. The token lets you store information about the credit card without storing sensitive customer data, such as credit card numbers, in Salesforce.

  • Alternative Payment Methods

    An alternative payment method allows customers to store and represent payment method information not represented by another pre-defined payment method such as CardPaymentMethod or DigitalWallet. Common examples of alternative payment methods include CashOnDeliver, Klarna, and Direct Debit. Alternative payment methods are available in API v51.0 and later.

  • Process Payments

    Process a payment in the payment gateway.

  • Process Refund

    Process a refund in the payment gateway.

  • Idempotency Guidelines

    An idempotent payment gateway recognizes duplicate requests, submitted in error or maliciously, and processes them without charging twice. When your gateway supports idempotency, check for duplicates in your adapter before you send a callout.

  • Sample Payment Gateway Implementation for CommercePayments

    We’ve created a GitHub repository containing code samples for a sample Payeezy payment gateway implementation with the CommercePayments namespace. Review the sample code if you need help with configuring your payment gateway implementation.