By definition, an order triggered on a schedule happens at some time in the future. Commerce Cloud cannot store credit card information, so it cannot maintain credit card information for future scheduled orders. Instead, scheduled orders must be paid for using the invoice payment gateway. As such, you must set up the invoice payment gateway for use on your storefront following the instructions provided in the Integrate with an Invoice Payment Gateway section. In addition to these instructions, you must add an enabledForScheduledOrder property to the config.json file for the gateway. An example of a config.json file with the enabledForScheduledOrder property is provided below.

{
  "configType": "payment",
  "titleResourceId": "title",
  "descriptionResourceId": "description",
  "instances" : [
    {
      "id": "agent",
      "instanceName": "agent",
      "labelResourceId": "agentInstanceLabel"
    },
    {
      "id": "preview",
      "instanceName": "preview",
      "labelResourceId": "previewInstanceLabel"
    },
    {
      "id": "storefront",
      "instanceName": "storefront",
      "labelResourceId": "storefrontInstanceLabel"
    }
  ],
  "properties": [
  {
      "id": "enabledForScheduledOrder",
      "type": "booleanType",
      "name": "enabledForScheduledOrder",
      "helpTextResourceId": "enabledForScheduledOrderHelpText",
      "labelResourceId": "enabledForScheduledOrderLabel",
      "defaultValue": true,
      "public" : true
  },

  {
      "id": "paymentMethodTypes",
      "type": "multiSelectOptionType",
      "name": "paymentMethodTypes",
      "required": true,
      "helpTextResourceId": "paymentMethodsHelpText",
      "labelResourceId": "paymentMethodsLabel",
      "defaultValue": "invoice",
      "displayAsCheckboxes": true,
      "options": [
         {
           "id": "invoice",
           "value": "invoice",
           "labelResourceId": "invoiceLabel"
         },
         {
           "id": "card",
           "value": "card",
           "labelResourceId": "cardLabel"
         }
       ]
    }
  ]
}

Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices