---
schema_version: "1"
id: e46bb3f34806a72c3293b7132c0bf6ec544333bc83ba3c30a89ccbfb1116d803
title: Create Orders Automatically Using Stored Payment Methods
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_stored_payments_for_auto_ordering.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_stored_payments_for_auto_ordering.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 7b5ab01f6d47985554aa115a25e2145cb9e62829283d54ac24ba4755617d468d
description: Set up a B2C Commerce site to automatically create orders in an off-session transaction by reusing payment information stored in tokens. An off-session transaction doesn't require the shopper to be online to complete a purchase. A site can use off-session tokens to automate orders for recurring payments, such as subscriptions or installments, or one-click reordering.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Create Orders Automatically Using Stored Payment Methods

Set up a B2C Commerce site to automatically create orders in an off-session transaction by reusing payment information stored in tokens. An off-session transaction doesn't require the shopper to be online to complete a purchase. A site can use off-session tokens to automate orders for recurring payments, such as subscriptions or installments, or one-click reordering.

When you configure a site for off-session reuse, all credit cards and SEPA debit accounts are set up for reuse, not just the payment methods that registered shoppers elect to save.

To authorize recurring payments or reauthorize payments for delayed order fulfillment, use these B2C Script API methods.

- SalesforcePaymentsMgr.confirmPaymentIntent (order, paymentMethod, statementDescriptor). Enables the site’s custom code to create an order and pass it to the Script API with a payment method that’s configured for future off-session reuse. The API confirms the charge to the card or bank account for the new order.
- SalesforcePaymentsMgr.getOffSessionPaymentMethods. Returns a collection of payment methods, which the SalesforcePaymentsMgr.confirmPaymentIntent method can reuse.