Create Orders from Stored Information with Salesforce Payments

Each time an order is placed, you can reuse the payment details, payer’s stored payment credentials, or off-session tokens from a previous payment. To create an order from a previous order, use the SalesforcePaymentsMgr.confirmPaymentIntent (order, paymentMethod, statementDescriptor) class and method from the B2C Commerce Script API. Data from the previous order is retrieved to create the order. No customer interaction is required.