Fluent Commerce Logo
Docs

Payment Settings

Essential knowledge

Author:

Fluent Commerce

Changed on:

1 Nov 2023

Overview

The below settings control the allowed values in the order transaction create method in the REST API (POST /api/v4.1/order/{orderId}/transaction). The createFinancialTransaction GraphQL mutation can use custom-defined paymentProvider, paymentMethod and currency fields. We recommend that the below settings be used as the way to look up current configured values dynamically without hardcoding values for these fields. These settings can be modified and retrieved via the settings API.

Key points

  • Understand the basic setup of payment settings
  • Example of how payment settings can be used

Example of use
The combination of these three fields provides a range of flexibility to control logic for a variety of use cases:
financialTransation FieldSettingExample 1Example 2Example 3
cardTypeNo custom values allowedVISAMASTERCARD(empty)
paymentMethodPAYMENT.METHODELECTRONCREDITCARDGIFTCARD
paymentProviderPAYMENT.PROVIDERADYENSQUARECUSTOM_PROVIDER1
currencyPAYMENT.CURRENCYUSDEUROBITCOIN
The above table combines the four different payment-related fields that can be used in combination to trigger different payment-related logic in workflows. Each example combination could be used to fire custom events to execute card, payment method, or provider-specific logic or returns requirements.

Fluent Commerce

Fluent Commerce