Author:
Fluent Commerce
Changed on:
1 Nov 2023
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.
The combination of these three fields provides a range of flexibility to control logic for a variety of use cases:
financialTransation Field | Setting | Example 1 | Example 2 | Example 3 |
cardType | No custom values allowed | VISA | MASTERCARD | (empty) |
paymentMethod | PAYMENT.METHOD | ELECTRON | CREDITCARD | GIFTCARD |
paymentProvider | PAYMENT.PROVIDER | ADYEN | SQUARE | CUSTOM_PROVIDER1 |
currency | PAYMENT.CURRENCY | USD | EURO | BITCOIN |
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.
Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.