Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
export const connectorDetails = {
payoutRouting: {
Request: {
name: "payout routing",
description: "payout routing config",
algorithm: {
type: "priority",
data: [],
},
profile_id: "{{profile_id}}",
transaction_type: "payout",
},
Response: {
status: 200,
body: {
algorithm_for: "payout",
},
},
},
payoutVolumeRouting: {
Request: {
name: "payout volume routing",
description: "payout volume based routing config",
algorithm: {
type: "volume_split",
data: [],
},
profile_id: "{{profile_id}}",
transaction_type: "payout",
},
Response: {
status: 200,
body: {
algorithm_for: "payout",
},
},
},
payoutRuleBasedRouting: {
Request: {
name: "payout rule based routing",
description: "payout rule based routing config",
algorithm: {
type: "advanced",
data: [],
},
profile_id: "{{profile_id}}",
transaction_type: "payout",
},
Response: {
status: 200,
body: {
algorithm_for: "payout",
},
},
},
payoutDefaultFallbackRouting: {
Request: {
name: "payout default fallback routing",
description: "payout default fallback routing config",
algorithm: {
type: "advanced",
data: [],
},
profile_id: "{{profile_id}}",
transaction_type: "payout",
},
Response: {
status: 200,
body: {
algorithm_for: "payout",
},
},
},
priorityRouting: {
Request: {
name: "priority routing",
description: "some desc",
algorithm: {
type: "priority",
data: [],
},
profile_id: "{{profile_id}}",
},
Response: {
status: 200,
body: {},
},
},
jwt: {
Request: {},
Response: {
status: 200,
body: {},
},
},
volumeBasedRouting: {
Request: {
name: "volume routing",
description: "some desc",
algorithm: {
type: "volume_split",
data: [],
},
profile_id: "{{profile_id}}",
},
Response: {
status: 200,
body: {},
},
},
ruleBasedRouting: {
Request: {
name: "Rule Based routing",
description: "Rule Based routing",
algorithm: {
type: "advanced",
data: [],
},
profile_id: "{{profile_id}}",
},
Response: {
status: 200,
body: {},
},
},
defaultRouting: {
Request: {
name: "default routing",
description: "default routing config",
algorithm: {
type: "priority",
data: [],
},
profile_id: "{{profile_id}}",
},
Response: {
status: 200,
body: {},
},
},
dynamicRouting: {
Request: {
decision_engine_configs: {
defaultBucketSize: 200,
defaultHedgingPercent: 5,
},
},
Response: {
status: 200,
body: {},
},
},
deactivateRouting: {
Request: {
profile_id: "{{profile_id}}",
algorithm_for: "payment",
},
Response: {
status: 200,
body: {},
},
},
deactivateRoutingNegative: {
Request: {
profile_id: "{{profile_id}}",
algorithm_for: "payment",
},
Response: {
status: 400,
body: {
error: {
message: "Algorithm is already inactive",
code: "IR_16",
},
},
},
},
SurchargeDecisionManager: {
Create: {
Request: {
name: "surcharge_config_rate",
merchant_surcharge_configs: {},
algorithm: {
defaultSelection: {
surcharge_details: {
surcharge: { type: "rate", value: { percentage: 2.5 } },
},
},
rules: [],
metadata: {},
},
},
Response: {
status: 200,
body: {
name: "surcharge_config_rate",
merchant_surcharge_configs: { show_surcharge_breakup_screen: null },
algorithm: {
defaultSelection: {
surcharge_details: {
surcharge: { type: "rate", value: { percentage: 2.5 } },
tax_on_surcharge: null,
},
},
rules: [],
metadata: {},
},
},
},
},
Retrieve: {
Request: {},
Response: {
status: 200,
body: {
name: "surcharge_config_rate",
merchant_surcharge_configs: { show_surcharge_breakup_screen: null },
algorithm: {
defaultSelection: {
surcharge_details: {
surcharge: { type: "rate", value: { percentage: 2.5 } },
tax_on_surcharge: null,
},
},
rules: [],
metadata: {},
},
},
},
},
Delete: {
Request: {},
Response: {
status: 200,
body: {},
},
},
CreateFixed: {
Request: {},
Response: {
status: 200,
body: {
name: "surcharge_config_fixed",
merchant_surcharge_configs: { show_surcharge_breakup_screen: null },
algorithm: {
defaultSelection: {
surcharge_details: {
surcharge: { type: "fixed", value: { amount: 100 } },
tax_on_surcharge: null,
},
},
rules: [],
metadata: {},
},
},
},
},
RetrieveFixed: {
Request: {},
Response: {
status: 200,
body: {
name: "surcharge_config_fixed",
merchant_surcharge_configs: { show_surcharge_breakup_screen: null },
algorithm: {
defaultSelection: {
surcharge_details: {
surcharge: { type: "fixed", value: { amount: 100 } },
tax_on_surcharge: null,
},
},
rules: [],
metadata: {},
},
},
},
},
CreateWithRules: {
Request: {},
Response: {
status: 200,
body: {
name: "surcharge_config_rules",
merchant_surcharge_configs: { show_surcharge_breakup_screen: null },
algorithm: {
defaultSelection: {
surcharge_details: {
surcharge: { type: "rate", value: { percentage: 2.5 } },
tax_on_surcharge: null,
},
},
rules: [
{
connectorSelection: {
surcharge_details: {
surcharge: { type: "rate", value: { percentage: 3 } },
tax_on_surcharge: null,
},
},
name: "card_surcharge_rule",
statements: [
{
condition: [
{
lhs: "payment_method",
comparison: "equal",
value: {
type: "enum_variant",
value: "card",
},
metadata: {},
},
],
nested: null,
},
],
},
],
metadata: {},
},
},
},
},
RetrieveWithRules: {
Request: {},
Response: {
status: 200,
body: {
name: "surcharge_config_rules",
merchant_surcharge_configs: { show_surcharge_breakup_screen: null },
algorithm: {
defaultSelection: {
surcharge_details: {
surcharge: { type: "rate", value: { percentage: 2.5 } },
tax_on_surcharge: null,
},
},
rules: [
{
connectorSelection: {
surcharge_details: {
surcharge: { type: "rate", value: { percentage: 3 } },
tax_on_surcharge: null,
},
},
name: "card_surcharge_rule",
statements: [
{
condition: [
{
lhs: "payment_method",
comparison: "equal",
value: {
type: "enum_variant",
value: "card",
},
metadata: {},
},
],
nested: null,
},
],
},
],
metadata: {},
},
},
},
},
RetrieveAfterDelete: {
Request: {},
Response: {
status: 404,
body: {
error: {
message: "Resource ID does not exist in our records",
code: "HE_02",
},
},
},
},
},
routingEvaluate: {
Request: {
name: "routing evaluate",
description: "routing evaluate test config",
algorithm: {
type: "advanced",
data: [],
},
profile_id: "{{profile_id}}",
},
Response: {
status: 200,
body: {},
},
},
deactivateDynamicRouting: {
Request: {},
Response: {
status: 200,
body: {},
},
},
toggleRouting: {
Request: {},
Response: {
status: 200,
body: {
kind: "dynamic",
},
},
},
};