PAYMENT.METHOD
Setting
Changed on:
24 Oct 2023
Setting Area | UI component, Workflow, Orders |
---|---|
Supported context levels: | GLOBAL RETAILER |
Overview
This setting is used to describe the Payment Methods (including Card Types) used by the Account
Values
Data Type | Values |
---|---|
JSON | Default Values:
Example Values:
|
Configuration example
1POST {{fluentApiHost}}/graphql
2
3
4// GLOBAL Level
5mutation {
6createSetting(input:
7{
8name: "PAYMENT.METHOD",
9lobValue: [{name:"CREDITCARD"},{name:"PAYPAL"}],
10context: "GLOBAL",
11contextId: 0,
12valueType: "JSON"
13}){
14id
15}}
16
17
18//Retailer Level
19mutation {
20createSetting(input:
21{
22name: "PAYMENT.METHOD",
23lobValue: [{name:"CREDITCARD"},{name:"PAYPAL"}],
24context: "RETAILER",
25contextId: 123,
26valueType: "JSON"
27}){
28id
29}}
30
31
32
Language: graphqlschema
Update example
1POST {{fluentApiHost}}/graphql
2
3// Global level
4mutation updateSetting {
5 updateSetting(input: {
6 name: "PAYMENT.METHOD",
7 valueType: "JSON",
8 lobValue:[{name:"CREDITCARD"},{name:"PAYPAL"},{name:"GIFTCARD"}],
9 context: "GLOBAL",
10 id: 5001464,
11 contextId: 0}) {
12 id
13 name
14 }
15}
16
17
18//Retailer Level
19mutation updateSetting {
20 updateSetting(input: {
21 name: "PAYMENT.METHOD",
22 valueType: "JSON",
23 lobValue:[{name:"CREDITCARD"},{name:"PAYPAL"},{name:"GIFTCARD"}],
24 context: "RETAILER",
25 id: 5001464,
26 contextId: 123}) {
27 id
28 name
29 }
30}
Language: graphqlschema