---
schema_version: "1"
id: cfca3c72124ed19325a0fbe94b2344797398c5ebccfbf316a9f1d73d529f6eab
title: Saved Payment Method Creation Methods
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-comm-saved-payment-method-overview.md
canonical_url: https://developer.salesforce.com/docs/commerce/salesforce-commerce/guide/b2b-comm-saved-payment-method-overview.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: d28ffac120ed53aee89cfa7ae03c420e6fb627ceb04ce5cb0cf0c7a60b1df0f6
products:
  - B2B Commerce Developer Guide
  - Salesforce APIs
---
# Saved Payment Method Creation Methods

You can create a Saved Payment Method (SPM) in Salesforce several ways, depends on the origin of the payment information and how the payment information is collected. These options support common integration patterns while ensuring payment details are securely stored and managed in Salesforce.

Choose the method that best fits your payment flow and integration requirements.

- [Saved Payment Method API](https://developer.salesforce.com/docs/commerce/salesforce-commerce/references/comm-payments-ref?meta=createSavedPaymentMethod)—Create Saved Payment Methods using client-side tokenization with native payment gateways, such as Stripe and Adyen. This API is primarily used internally by Storefront pages or Experience Cloud sites.
- [Tokenize Payment Method API](https://developer.salesforce.com/docs/commerce/salesforce-commerce/references/comm-ccs-payments-ref?meta=tokenizePaymentMethod)—Tokenize raw card or bank account details to generate a payment token. When `Autopay` is set to true for recurring payments, you can create a Saved Payment Method directly from the tokenized data.
- [Import Tokenized Payments](https://developer.salesforce.com/docs/commerce/salesforce-commerce/guide/b2b-comm-spm-import-tokens-overview.md)—Import previously tokenized payment methods into Salesforce as Saved Payment Methods. Use this option when migrating existing customers and payment data to Salesforce.
- [Buyer-Facing Client-Side Component](https://developer.salesforce.com/docs/commerce/salesforce-commerce/guide/b2b-comm-spm-client-side-component.md)—Create Saved Payment Methods from buyer-facing client-side components. This approach enables customers to onboard any payment method, including those not defined in the Saved Payment Method type. This option is available only to customers using third-party payment gateways.
