mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-31 01:57:45 +08:00
feat(connector-config): add wasm support for dashboard connector configuration (#3138)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Bernard Eugine <114725419+bernard-eugine@users.noreply.github.com>
This commit is contained in:
12
Cargo.lock
generated
12
Cargo.lock
generated
@ -1727,6 +1727,17 @@ dependencies = [
|
||||
"toml 0.7.4",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "connector_configs"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"api_models",
|
||||
"serde",
|
||||
"serde_with",
|
||||
"toml 0.7.4",
|
||||
"utoipa",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "constant_time_eq"
|
||||
version = "0.2.6"
|
||||
@ -2386,6 +2397,7 @@ version = "0.1.0"
|
||||
dependencies = [
|
||||
"api_models",
|
||||
"common_enums",
|
||||
"connector_configs",
|
||||
"currency_conversion",
|
||||
"euclid",
|
||||
"getrandom 0.2.11",
|
||||
|
||||
22
crates/connector_configs/Cargo.toml
Normal file
22
crates/connector_configs/Cargo.toml
Normal file
@ -0,0 +1,22 @@
|
||||
[package]
|
||||
name = "connector_configs"
|
||||
description = "Connector Integration Dashboard"
|
||||
version = "0.1.0"
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[features]
|
||||
default = ["payouts", "dummy_connector"]
|
||||
production = []
|
||||
development = []
|
||||
sandbox = []
|
||||
dummy_connector = ["api_models/dummy_connector", "development"]
|
||||
payouts = []
|
||||
|
||||
[dependencies]
|
||||
api_models = { version = "0.1.0", path = "../api_models", package = "api_models" }
|
||||
serde = { version = "1.0.193", features = ["derive"] }
|
||||
serde_with = "3.4.0"
|
||||
toml = "0.7.3"
|
||||
utoipa = { version = "3.3.0", features = ["preserve_order"] }
|
||||
133
crates/connector_configs/src/common_config.rs
Normal file
133
crates/connector_configs/src/common_config.rs
Normal file
@ -0,0 +1,133 @@
|
||||
use api_models::{payment_methods, payments};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use utoipa::ToSchema;
|
||||
|
||||
#[serde_with::skip_serializing_none]
|
||||
#[derive(Debug, Deserialize, serde::Serialize, Clone)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub struct ZenApplePay {
|
||||
pub terminal_uuid: Option<String>,
|
||||
pub pay_wall_secret: Option<String>,
|
||||
}
|
||||
|
||||
#[serde_with::skip_serializing_none]
|
||||
#[derive(Debug, Deserialize, serde::Serialize, Clone)]
|
||||
#[serde(untagged)]
|
||||
pub enum ApplePayData {
|
||||
ApplePay(payments::ApplePayMetadata),
|
||||
ApplePayCombined(payments::ApplePayCombinedMetadata),
|
||||
Zen(ZenApplePay),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
pub struct GpayDashboardPayLoad {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub gateway_merchant_id: Option<String>,
|
||||
#[serde(skip_serializing_if = "Option::is_none", rename = "stripe:version")]
|
||||
pub stripe_version: Option<String>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(rename(
|
||||
serialize = "stripe_publishable_key",
|
||||
deserialize = "stripe:publishable_key"
|
||||
))]
|
||||
#[serde(alias = "stripe:publishable_key")]
|
||||
#[serde(alias = "stripe_publishable_key")]
|
||||
pub stripe_publishable_key: Option<String>,
|
||||
pub merchant_name: String,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub merchant_id: Option<String>,
|
||||
}
|
||||
|
||||
#[serde_with::skip_serializing_none]
|
||||
#[derive(Debug, Deserialize, serde::Serialize, Clone)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub struct ZenGooglePay {
|
||||
pub terminal_uuid: Option<String>,
|
||||
pub pay_wall_secret: Option<String>,
|
||||
}
|
||||
|
||||
#[serde_with::skip_serializing_none]
|
||||
#[derive(Debug, Deserialize, serde::Serialize, Clone)]
|
||||
#[serde(untagged)]
|
||||
pub enum GooglePayData {
|
||||
Standard(GpayDashboardPayLoad),
|
||||
Zen(ZenGooglePay),
|
||||
}
|
||||
|
||||
#[serde_with::skip_serializing_none]
|
||||
#[derive(Debug, Deserialize, serde::Serialize, Clone)]
|
||||
#[serde(untagged)]
|
||||
pub enum GoogleApiModelData {
|
||||
Standard(payments::GpayMetaData),
|
||||
Zen(ZenGooglePay),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub struct PaymentMethodsEnabled {
|
||||
pub payment_method: api_models::enums::PaymentMethod,
|
||||
pub payment_method_types: Option<Vec<payment_methods::RequestPaymentMethodTypes>>,
|
||||
}
|
||||
|
||||
#[serde_with::skip_serializing_none]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub struct ApiModelMetaData {
|
||||
pub merchant_config_currency: Option<api_models::enums::Currency>,
|
||||
pub merchant_account_id: Option<String>,
|
||||
pub account_name: Option<String>,
|
||||
pub terminal_id: Option<String>,
|
||||
pub merchant_id: Option<String>,
|
||||
pub google_pay: Option<GoogleApiModelData>,
|
||||
pub apple_pay: Option<ApplePayData>,
|
||||
pub apple_pay_combined: Option<ApplePayData>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub struct ConnectorApiIntegrationPayload {
|
||||
pub connector_type: String,
|
||||
pub profile_id: String,
|
||||
pub connector_name: api_models::enums::Connector,
|
||||
#[serde(skip_deserializing)]
|
||||
#[schema(example = "stripe_US_travel")]
|
||||
pub connector_label: Option<String>,
|
||||
pub merchant_connector_id: Option<String>,
|
||||
pub disabled: bool,
|
||||
pub test_mode: bool,
|
||||
pub payment_methods_enabled: Option<Vec<PaymentMethodsEnabled>>,
|
||||
pub metadata: Option<ApiModelMetaData>,
|
||||
pub connector_webhook_details: Option<api_models::admin::MerchantConnectorWebhookDetails>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub struct DashboardPaymentMethodPayload {
|
||||
pub payment_method: api_models::enums::PaymentMethod,
|
||||
pub payment_method_type: String,
|
||||
pub provider: Option<Vec<api_models::enums::PaymentMethodType>>,
|
||||
pub card_provider: Option<Vec<api_models::enums::CardNetwork>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde_with::skip_serializing_none]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub struct DashboardRequestPayload {
|
||||
pub connector: api_models::enums::Connector,
|
||||
pub payment_methods_enabled: Option<Vec<DashboardPaymentMethodPayload>>,
|
||||
pub metadata: Option<DashboardMetaData>,
|
||||
}
|
||||
|
||||
#[serde_with::skip_serializing_none]
|
||||
#[derive(Debug, Deserialize, serde::Serialize, Clone)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub struct DashboardMetaData {
|
||||
pub merchant_config_currency: Option<api_models::enums::Currency>,
|
||||
pub merchant_account_id: Option<String>,
|
||||
pub account_name: Option<String>,
|
||||
pub terminal_id: Option<String>,
|
||||
pub merchant_id: Option<String>,
|
||||
pub google_pay: Option<GooglePayData>,
|
||||
pub apple_pay: Option<ApplePayData>,
|
||||
pub apple_pay_combined: Option<ApplePayData>,
|
||||
}
|
||||
267
crates/connector_configs/src/connector.rs
Normal file
267
crates/connector_configs/src/connector.rs
Normal file
@ -0,0 +1,267 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
#[cfg(feature = "payouts")]
|
||||
use api_models::enums::PayoutConnectors;
|
||||
use api_models::{
|
||||
enums::{CardNetwork, Connector, PaymentMethodType},
|
||||
payments,
|
||||
};
|
||||
use serde::Deserialize;
|
||||
#[cfg(any(feature = "sandbox", feature = "development", feature = "production"))]
|
||||
use toml;
|
||||
|
||||
use crate::common_config::{GooglePayData, ZenApplePay};
|
||||
|
||||
#[derive(Default, Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
pub struct CurrencyAuthKeyType {
|
||||
pub password_classic: Option<String>,
|
||||
pub username_classic: Option<String>,
|
||||
pub merchant_id_classic: Option<String>,
|
||||
pub password_evoucher: Option<String>,
|
||||
pub username_evoucher: Option<String>,
|
||||
pub merchant_id_evoucher: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
pub enum ConnectorAuthType {
|
||||
HeaderKey {
|
||||
api_key: String,
|
||||
},
|
||||
BodyKey {
|
||||
api_key: String,
|
||||
key1: String,
|
||||
},
|
||||
SignatureKey {
|
||||
api_key: String,
|
||||
key1: String,
|
||||
api_secret: String,
|
||||
},
|
||||
MultiAuthKey {
|
||||
api_key: String,
|
||||
key1: String,
|
||||
api_secret: String,
|
||||
key2: String,
|
||||
},
|
||||
CurrencyAuthKey {
|
||||
auth_key_map: HashMap<String, CurrencyAuthKeyType>,
|
||||
},
|
||||
#[default]
|
||||
NoKey,
|
||||
}
|
||||
|
||||
#[serde_with::skip_serializing_none]
|
||||
#[derive(Debug, Deserialize, serde::Serialize, Clone)]
|
||||
#[serde(untagged)]
|
||||
pub enum ApplePayTomlConfig {
|
||||
Standard(payments::ApplePayMetadata),
|
||||
Zen(ZenApplePay),
|
||||
}
|
||||
|
||||
#[serde_with::skip_serializing_none]
|
||||
#[derive(Debug, Deserialize, serde::Serialize, Clone)]
|
||||
pub struct ConfigMetadata {
|
||||
pub merchant_config_currency: Option<String>,
|
||||
pub merchant_account_id: Option<String>,
|
||||
pub account_name: Option<String>,
|
||||
pub terminal_id: Option<String>,
|
||||
pub google_pay: Option<GooglePayData>,
|
||||
pub apple_pay: Option<ApplePayTomlConfig>,
|
||||
pub merchant_id: Option<String>,
|
||||
}
|
||||
|
||||
#[serde_with::skip_serializing_none]
|
||||
#[derive(Debug, Deserialize, serde::Serialize, Clone)]
|
||||
pub struct ConnectorTomlConfig {
|
||||
pub connector_auth: Option<ConnectorAuthType>,
|
||||
pub connector_webhook_details: Option<api_models::admin::MerchantConnectorWebhookDetails>,
|
||||
pub metadata: Option<ConfigMetadata>,
|
||||
pub credit: Option<Vec<CardNetwork>>,
|
||||
pub debit: Option<Vec<CardNetwork>>,
|
||||
pub bank_transfer: Option<Vec<PaymentMethodType>>,
|
||||
pub bank_redirect: Option<Vec<PaymentMethodType>>,
|
||||
pub bank_debit: Option<Vec<PaymentMethodType>>,
|
||||
pub pay_later: Option<Vec<PaymentMethodType>>,
|
||||
pub wallet: Option<Vec<PaymentMethodType>>,
|
||||
pub crypto: Option<Vec<PaymentMethodType>>,
|
||||
pub reward: Option<Vec<PaymentMethodType>>,
|
||||
pub upi: Option<Vec<PaymentMethodType>>,
|
||||
pub voucher: Option<Vec<PaymentMethodType>>,
|
||||
pub gift_card: Option<Vec<PaymentMethodType>>,
|
||||
pub card_redirect: Option<Vec<PaymentMethodType>>,
|
||||
pub is_verifiable: Option<bool>,
|
||||
}
|
||||
#[serde_with::skip_serializing_none]
|
||||
#[derive(Debug, Deserialize, serde::Serialize, Clone)]
|
||||
pub struct ConnectorConfig {
|
||||
pub aci: Option<ConnectorTomlConfig>,
|
||||
pub adyen: Option<ConnectorTomlConfig>,
|
||||
#[cfg(feature = "payouts")]
|
||||
pub adyen_payout: Option<ConnectorTomlConfig>,
|
||||
pub airwallex: Option<ConnectorTomlConfig>,
|
||||
pub authorizedotnet: Option<ConnectorTomlConfig>,
|
||||
pub bankofamerica: Option<ConnectorTomlConfig>,
|
||||
pub bitpay: Option<ConnectorTomlConfig>,
|
||||
pub bluesnap: Option<ConnectorTomlConfig>,
|
||||
pub boku: Option<ConnectorTomlConfig>,
|
||||
pub braintree: Option<ConnectorTomlConfig>,
|
||||
pub cashtocode: Option<ConnectorTomlConfig>,
|
||||
pub checkout: Option<ConnectorTomlConfig>,
|
||||
pub coinbase: Option<ConnectorTomlConfig>,
|
||||
pub cryptopay: Option<ConnectorTomlConfig>,
|
||||
pub cybersource: Option<ConnectorTomlConfig>,
|
||||
pub iatapay: Option<ConnectorTomlConfig>,
|
||||
pub opennode: Option<ConnectorTomlConfig>,
|
||||
pub bambora: Option<ConnectorTomlConfig>,
|
||||
pub dlocal: Option<ConnectorTomlConfig>,
|
||||
pub fiserv: Option<ConnectorTomlConfig>,
|
||||
pub forte: Option<ConnectorTomlConfig>,
|
||||
pub globalpay: Option<ConnectorTomlConfig>,
|
||||
pub globepay: Option<ConnectorTomlConfig>,
|
||||
pub gocardless: Option<ConnectorTomlConfig>,
|
||||
pub helcim: Option<ConnectorTomlConfig>,
|
||||
pub klarna: Option<ConnectorTomlConfig>,
|
||||
pub mollie: Option<ConnectorTomlConfig>,
|
||||
pub multisafepay: Option<ConnectorTomlConfig>,
|
||||
pub nexinets: Option<ConnectorTomlConfig>,
|
||||
pub nmi: Option<ConnectorTomlConfig>,
|
||||
pub noon: Option<ConnectorTomlConfig>,
|
||||
pub nuvei: Option<ConnectorTomlConfig>,
|
||||
pub payme: Option<ConnectorTomlConfig>,
|
||||
pub paypal: Option<ConnectorTomlConfig>,
|
||||
pub payu: Option<ConnectorTomlConfig>,
|
||||
pub placetopay: Option<ConnectorTomlConfig>,
|
||||
pub plaid: Option<ConnectorTomlConfig>,
|
||||
pub powertranz: Option<ConnectorTomlConfig>,
|
||||
pub prophetpay: Option<ConnectorTomlConfig>,
|
||||
pub riskified: Option<ConnectorTomlConfig>,
|
||||
pub rapyd: Option<ConnectorTomlConfig>,
|
||||
pub shift4: Option<ConnectorTomlConfig>,
|
||||
pub stripe: Option<ConnectorTomlConfig>,
|
||||
pub signifyd: Option<ConnectorTomlConfig>,
|
||||
pub trustpay: Option<ConnectorTomlConfig>,
|
||||
pub tsys: Option<ConnectorTomlConfig>,
|
||||
pub volt: Option<ConnectorTomlConfig>,
|
||||
#[cfg(feature = "payouts")]
|
||||
pub wise_payout: Option<ConnectorTomlConfig>,
|
||||
pub worldline: Option<ConnectorTomlConfig>,
|
||||
pub worldpay: Option<ConnectorTomlConfig>,
|
||||
pub zen: Option<ConnectorTomlConfig>,
|
||||
pub square: Option<ConnectorTomlConfig>,
|
||||
pub stax: Option<ConnectorTomlConfig>,
|
||||
pub dummy_connector: Option<ConnectorTomlConfig>,
|
||||
pub stripe_test: Option<ConnectorTomlConfig>,
|
||||
pub paypal_test: Option<ConnectorTomlConfig>,
|
||||
}
|
||||
|
||||
impl ConnectorConfig {
|
||||
fn new() -> Result<Self, String> {
|
||||
#[cfg(all(
|
||||
feature = "production",
|
||||
not(any(feature = "sandbox", feature = "development"))
|
||||
))]
|
||||
let config = toml::from_str::<Self>(include_str!("../toml/production.toml"));
|
||||
#[cfg(all(
|
||||
feature = "sandbox",
|
||||
not(any(feature = "production", feature = "development"))
|
||||
))]
|
||||
let config = toml::from_str::<Self>(include_str!("../toml/sandbox.toml"));
|
||||
#[cfg(feature = "development")]
|
||||
let config = toml::from_str::<Self>(include_str!("../toml/development.toml"));
|
||||
|
||||
#[cfg(not(any(feature = "sandbox", feature = "development", feature = "production")))]
|
||||
return Err(String::from(
|
||||
"Atleast one features has to be enabled for connectorconfig",
|
||||
));
|
||||
|
||||
#[cfg(any(feature = "sandbox", feature = "development", feature = "production"))]
|
||||
match config {
|
||||
Ok(data) => Ok(data),
|
||||
Err(err) => Err(err.to_string()),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "payouts")]
|
||||
pub fn get_payout_connector_config(
|
||||
connector: PayoutConnectors,
|
||||
) -> Result<Option<ConnectorTomlConfig>, String> {
|
||||
let connector_data = Self::new()?;
|
||||
match connector {
|
||||
PayoutConnectors::Adyen => Ok(connector_data.adyen_payout),
|
||||
PayoutConnectors::Wise => Ok(connector_data.wise_payout),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_connector_config(
|
||||
connector: Connector,
|
||||
) -> Result<Option<ConnectorTomlConfig>, String> {
|
||||
let connector_data = Self::new()?;
|
||||
match connector {
|
||||
Connector::Aci => Ok(connector_data.aci),
|
||||
Connector::Adyen => Ok(connector_data.adyen),
|
||||
Connector::Airwallex => Ok(connector_data.airwallex),
|
||||
Connector::Authorizedotnet => Ok(connector_data.authorizedotnet),
|
||||
Connector::Bankofamerica => Ok(connector_data.bankofamerica),
|
||||
Connector::Bitpay => Ok(connector_data.bitpay),
|
||||
Connector::Bluesnap => Ok(connector_data.bluesnap),
|
||||
Connector::Boku => Ok(connector_data.boku),
|
||||
Connector::Braintree => Ok(connector_data.braintree),
|
||||
Connector::Cashtocode => Ok(connector_data.cashtocode),
|
||||
Connector::Checkout => Ok(connector_data.checkout),
|
||||
Connector::Coinbase => Ok(connector_data.coinbase),
|
||||
Connector::Cryptopay => Ok(connector_data.cryptopay),
|
||||
Connector::Cybersource => Ok(connector_data.cybersource),
|
||||
Connector::Iatapay => Ok(connector_data.iatapay),
|
||||
Connector::Opennode => Ok(connector_data.opennode),
|
||||
Connector::Bambora => Ok(connector_data.bambora),
|
||||
Connector::Dlocal => Ok(connector_data.dlocal),
|
||||
Connector::Fiserv => Ok(connector_data.fiserv),
|
||||
Connector::Forte => Ok(connector_data.forte),
|
||||
Connector::Globalpay => Ok(connector_data.globalpay),
|
||||
Connector::Globepay => Ok(connector_data.globepay),
|
||||
Connector::Gocardless => Ok(connector_data.gocardless),
|
||||
Connector::Helcim => Ok(connector_data.helcim),
|
||||
Connector::Klarna => Ok(connector_data.klarna),
|
||||
Connector::Mollie => Ok(connector_data.mollie),
|
||||
Connector::Multisafepay => Ok(connector_data.multisafepay),
|
||||
Connector::Nexinets => Ok(connector_data.nexinets),
|
||||
Connector::Prophetpay => Ok(connector_data.prophetpay),
|
||||
Connector::Nmi => Ok(connector_data.nmi),
|
||||
Connector::Noon => Ok(connector_data.noon),
|
||||
Connector::Nuvei => Ok(connector_data.nuvei),
|
||||
Connector::Payme => Ok(connector_data.payme),
|
||||
Connector::Paypal => Ok(connector_data.paypal),
|
||||
Connector::Payu => Ok(connector_data.payu),
|
||||
Connector::Placetopay => Ok(connector_data.placetopay),
|
||||
Connector::Plaid => Ok(connector_data.plaid),
|
||||
Connector::Powertranz => Ok(connector_data.powertranz),
|
||||
Connector::Rapyd => Ok(connector_data.rapyd),
|
||||
Connector::Riskified => Ok(connector_data.riskified),
|
||||
Connector::Shift4 => Ok(connector_data.shift4),
|
||||
Connector::Signifyd => Ok(connector_data.signifyd),
|
||||
Connector::Square => Ok(connector_data.square),
|
||||
Connector::Stax => Ok(connector_data.stax),
|
||||
Connector::Stripe => Ok(connector_data.stripe),
|
||||
Connector::Trustpay => Ok(connector_data.trustpay),
|
||||
Connector::Tsys => Ok(connector_data.tsys),
|
||||
Connector::Volt => Ok(connector_data.volt),
|
||||
Connector::Wise => Err("Use get_payout_connector_config".to_string()),
|
||||
Connector::Worldline => Ok(connector_data.worldline),
|
||||
Connector::Worldpay => Ok(connector_data.worldpay),
|
||||
Connector::Zen => Ok(connector_data.zen),
|
||||
#[cfg(feature = "dummy_connector")]
|
||||
Connector::DummyConnector1 => Ok(connector_data.dummy_connector),
|
||||
#[cfg(feature = "dummy_connector")]
|
||||
Connector::DummyConnector2 => Ok(connector_data.dummy_connector),
|
||||
#[cfg(feature = "dummy_connector")]
|
||||
Connector::DummyConnector3 => Ok(connector_data.dummy_connector),
|
||||
#[cfg(feature = "dummy_connector")]
|
||||
Connector::DummyConnector4 => Ok(connector_data.stripe_test),
|
||||
#[cfg(feature = "dummy_connector")]
|
||||
Connector::DummyConnector5 => Ok(connector_data.dummy_connector),
|
||||
#[cfg(feature = "dummy_connector")]
|
||||
Connector::DummyConnector6 => Ok(connector_data.dummy_connector),
|
||||
#[cfg(feature = "dummy_connector")]
|
||||
Connector::DummyConnector7 => Ok(connector_data.paypal_test),
|
||||
}
|
||||
}
|
||||
}
|
||||
4
crates/connector_configs/src/lib.rs
Normal file
4
crates/connector_configs/src/lib.rs
Normal file
@ -0,0 +1,4 @@
|
||||
pub mod common_config;
|
||||
pub mod connector;
|
||||
pub mod response_modifier;
|
||||
pub mod transformer;
|
||||
313
crates/connector_configs/src/response_modifier.rs
Normal file
313
crates/connector_configs/src/response_modifier.rs
Normal file
@ -0,0 +1,313 @@
|
||||
use crate::common_config::{
|
||||
ConnectorApiIntegrationPayload, DashboardMetaData, DashboardPaymentMethodPayload,
|
||||
DashboardRequestPayload, GoogleApiModelData, GooglePayData, GpayDashboardPayLoad,
|
||||
};
|
||||
|
||||
impl ConnectorApiIntegrationPayload {
|
||||
pub fn get_transformed_response_payload(response: Self) -> DashboardRequestPayload {
|
||||
let mut wallet_details = Vec::new();
|
||||
let mut bank_redirect_details = Vec::new();
|
||||
let mut pay_later_details = Vec::new();
|
||||
let mut debit_details = Vec::new();
|
||||
let mut credit_details = Vec::new();
|
||||
let mut bank_transfer_details = Vec::new();
|
||||
let mut crypto_details = Vec::new();
|
||||
let mut bank_debit_details = Vec::new();
|
||||
let mut reward_details = Vec::new();
|
||||
let mut upi_details = Vec::new();
|
||||
let mut voucher_details = Vec::new();
|
||||
let mut gift_card_details = Vec::new();
|
||||
let mut card_redirect_details = Vec::new();
|
||||
|
||||
if let Some(payment_methods_enabled) = response.payment_methods_enabled.clone() {
|
||||
for methods in payment_methods_enabled {
|
||||
match methods.payment_method {
|
||||
api_models::enums::PaymentMethod::Card => {
|
||||
if let Some(payment_method_types) = methods.payment_method_types {
|
||||
for method_type in payment_method_types {
|
||||
let payment_type = method_type.payment_method_type;
|
||||
match payment_type {
|
||||
api_models::enums::PaymentMethodType::Credit => {
|
||||
if let Some(card_networks) = method_type.card_networks {
|
||||
for card in card_networks {
|
||||
credit_details.push(card)
|
||||
}
|
||||
}
|
||||
}
|
||||
api_models::enums::PaymentMethodType::Debit => {
|
||||
if let Some(card_networks) = method_type.card_networks {
|
||||
for card in card_networks {
|
||||
debit_details.push(card)
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
api_models::enums::PaymentMethod::Wallet => {
|
||||
if let Some(payment_method_types) = methods.payment_method_types {
|
||||
for method_type in payment_method_types {
|
||||
wallet_details.push(method_type.payment_method_type)
|
||||
}
|
||||
}
|
||||
}
|
||||
api_models::enums::PaymentMethod::BankRedirect => {
|
||||
if let Some(payment_method_types) = methods.payment_method_types {
|
||||
for method_type in payment_method_types {
|
||||
bank_redirect_details.push(method_type.payment_method_type)
|
||||
}
|
||||
}
|
||||
}
|
||||
api_models::enums::PaymentMethod::PayLater => {
|
||||
if let Some(payment_method_types) = methods.payment_method_types {
|
||||
for method_type in payment_method_types {
|
||||
pay_later_details.push(method_type.payment_method_type)
|
||||
}
|
||||
}
|
||||
}
|
||||
api_models::enums::PaymentMethod::BankTransfer => {
|
||||
if let Some(payment_method_types) = methods.payment_method_types {
|
||||
for method_type in payment_method_types {
|
||||
bank_transfer_details.push(method_type.payment_method_type)
|
||||
}
|
||||
}
|
||||
}
|
||||
api_models::enums::PaymentMethod::Crypto => {
|
||||
if let Some(payment_method_types) = methods.payment_method_types {
|
||||
for method_type in payment_method_types {
|
||||
crypto_details.push(method_type.payment_method_type)
|
||||
}
|
||||
}
|
||||
}
|
||||
api_models::enums::PaymentMethod::BankDebit => {
|
||||
if let Some(payment_method_types) = methods.payment_method_types {
|
||||
for method_type in payment_method_types {
|
||||
bank_debit_details.push(method_type.payment_method_type)
|
||||
}
|
||||
}
|
||||
}
|
||||
api_models::enums::PaymentMethod::Reward => {
|
||||
if let Some(payment_method_types) = methods.payment_method_types {
|
||||
for method_type in payment_method_types {
|
||||
reward_details.push(method_type.payment_method_type)
|
||||
}
|
||||
}
|
||||
}
|
||||
api_models::enums::PaymentMethod::Upi => {
|
||||
if let Some(payment_method_types) = methods.payment_method_types {
|
||||
for method_type in payment_method_types {
|
||||
upi_details.push(method_type.payment_method_type)
|
||||
}
|
||||
}
|
||||
}
|
||||
api_models::enums::PaymentMethod::Voucher => {
|
||||
if let Some(payment_method_types) = methods.payment_method_types {
|
||||
for method_type in payment_method_types {
|
||||
voucher_details.push(method_type.payment_method_type)
|
||||
}
|
||||
}
|
||||
}
|
||||
api_models::enums::PaymentMethod::GiftCard => {
|
||||
if let Some(payment_method_types) = methods.payment_method_types {
|
||||
for method_type in payment_method_types {
|
||||
gift_card_details.push(method_type.payment_method_type)
|
||||
}
|
||||
}
|
||||
}
|
||||
api_models::enums::PaymentMethod::CardRedirect => {
|
||||
if let Some(payment_method_types) = methods.payment_method_types {
|
||||
for method_type in payment_method_types {
|
||||
card_redirect_details.push(method_type.payment_method_type)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let upi = DashboardPaymentMethodPayload {
|
||||
payment_method: api_models::enums::PaymentMethod::Upi,
|
||||
payment_method_type: api_models::enums::PaymentMethod::Upi.to_string(),
|
||||
provider: Some(upi_details),
|
||||
card_provider: None,
|
||||
};
|
||||
|
||||
let voucher: DashboardPaymentMethodPayload = DashboardPaymentMethodPayload {
|
||||
payment_method: api_models::enums::PaymentMethod::Voucher,
|
||||
payment_method_type: api_models::enums::PaymentMethod::Voucher.to_string(),
|
||||
provider: Some(voucher_details),
|
||||
card_provider: None,
|
||||
};
|
||||
|
||||
let gift_card: DashboardPaymentMethodPayload = DashboardPaymentMethodPayload {
|
||||
payment_method: api_models::enums::PaymentMethod::GiftCard,
|
||||
payment_method_type: api_models::enums::PaymentMethod::GiftCard.to_string(),
|
||||
provider: Some(gift_card_details),
|
||||
card_provider: None,
|
||||
};
|
||||
|
||||
let reward = DashboardPaymentMethodPayload {
|
||||
payment_method: api_models::enums::PaymentMethod::Reward,
|
||||
payment_method_type: api_models::enums::PaymentMethod::Reward.to_string(),
|
||||
provider: Some(reward_details),
|
||||
card_provider: None,
|
||||
};
|
||||
|
||||
let wallet = DashboardPaymentMethodPayload {
|
||||
payment_method: api_models::enums::PaymentMethod::Wallet,
|
||||
payment_method_type: api_models::enums::PaymentMethod::Wallet.to_string(),
|
||||
provider: Some(wallet_details),
|
||||
card_provider: None,
|
||||
};
|
||||
let bank_redirect = DashboardPaymentMethodPayload {
|
||||
payment_method: api_models::enums::PaymentMethod::BankRedirect,
|
||||
payment_method_type: api_models::enums::PaymentMethod::BankRedirect.to_string(),
|
||||
provider: Some(bank_redirect_details),
|
||||
card_provider: None,
|
||||
};
|
||||
|
||||
let bank_debit = DashboardPaymentMethodPayload {
|
||||
payment_method: api_models::enums::PaymentMethod::BankDebit,
|
||||
payment_method_type: api_models::enums::PaymentMethod::BankDebit.to_string(),
|
||||
provider: Some(bank_debit_details),
|
||||
card_provider: None,
|
||||
};
|
||||
|
||||
let bank_transfer = DashboardPaymentMethodPayload {
|
||||
payment_method: api_models::enums::PaymentMethod::BankTransfer,
|
||||
payment_method_type: api_models::enums::PaymentMethod::BankTransfer.to_string(),
|
||||
provider: Some(bank_transfer_details),
|
||||
card_provider: None,
|
||||
};
|
||||
|
||||
let crypto = DashboardPaymentMethodPayload {
|
||||
payment_method: api_models::enums::PaymentMethod::Crypto,
|
||||
payment_method_type: api_models::enums::PaymentMethod::Crypto.to_string(),
|
||||
provider: Some(crypto_details),
|
||||
card_provider: None,
|
||||
};
|
||||
|
||||
let card_redirect = DashboardPaymentMethodPayload {
|
||||
payment_method: api_models::enums::PaymentMethod::CardRedirect,
|
||||
payment_method_type: api_models::enums::PaymentMethod::CardRedirect.to_string(),
|
||||
provider: Some(card_redirect_details),
|
||||
card_provider: None,
|
||||
};
|
||||
let pay_later = DashboardPaymentMethodPayload {
|
||||
payment_method: api_models::enums::PaymentMethod::PayLater,
|
||||
payment_method_type: api_models::enums::PaymentMethod::PayLater.to_string(),
|
||||
provider: Some(pay_later_details),
|
||||
card_provider: None,
|
||||
};
|
||||
let debit_details = DashboardPaymentMethodPayload {
|
||||
payment_method: api_models::enums::PaymentMethod::Card,
|
||||
payment_method_type: api_models::enums::PaymentMethodType::Debit.to_string(),
|
||||
provider: None,
|
||||
card_provider: Some(debit_details),
|
||||
};
|
||||
let credit_details = DashboardPaymentMethodPayload {
|
||||
payment_method: api_models::enums::PaymentMethod::Card,
|
||||
payment_method_type: api_models::enums::PaymentMethodType::Credit.to_string(),
|
||||
provider: None,
|
||||
card_provider: Some(credit_details),
|
||||
};
|
||||
|
||||
let google_pay = Self::get_google_pay_metadata_response(response.clone());
|
||||
let account_name = match response.metadata.clone() {
|
||||
Some(meta_data) => meta_data.account_name,
|
||||
_ => None,
|
||||
};
|
||||
|
||||
let merchant_account_id = match response.metadata.clone() {
|
||||
Some(meta_data) => meta_data.merchant_account_id,
|
||||
_ => None,
|
||||
};
|
||||
let merchant_id = match response.metadata.clone() {
|
||||
Some(meta_data) => meta_data.merchant_id,
|
||||
_ => None,
|
||||
};
|
||||
let terminal_id = match response.metadata.clone() {
|
||||
Some(meta_data) => meta_data.terminal_id,
|
||||
_ => None,
|
||||
};
|
||||
let apple_pay = match response.metadata.clone() {
|
||||
Some(meta_data) => meta_data.apple_pay,
|
||||
_ => None,
|
||||
};
|
||||
let apple_pay_combined = match response.metadata.clone() {
|
||||
Some(meta_data) => meta_data.apple_pay_combined,
|
||||
_ => None,
|
||||
};
|
||||
let merchant_config_currency = match response.metadata.clone() {
|
||||
Some(meta_data) => meta_data.merchant_config_currency,
|
||||
_ => None,
|
||||
};
|
||||
|
||||
let meta_data = DashboardMetaData {
|
||||
merchant_config_currency,
|
||||
merchant_account_id,
|
||||
apple_pay,
|
||||
apple_pay_combined,
|
||||
google_pay,
|
||||
account_name,
|
||||
terminal_id,
|
||||
merchant_id,
|
||||
};
|
||||
|
||||
DashboardRequestPayload {
|
||||
connector: response.connector_name,
|
||||
payment_methods_enabled: Some(vec![
|
||||
upi,
|
||||
voucher,
|
||||
reward,
|
||||
wallet,
|
||||
bank_redirect,
|
||||
bank_debit,
|
||||
bank_transfer,
|
||||
crypto,
|
||||
card_redirect,
|
||||
pay_later,
|
||||
debit_details,
|
||||
credit_details,
|
||||
gift_card,
|
||||
]),
|
||||
metadata: Some(meta_data),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_google_pay_metadata_response(response: Self) -> Option<GooglePayData> {
|
||||
match response.metadata {
|
||||
Some(meta_data) => match meta_data.google_pay {
|
||||
Some(google_pay) => match google_pay {
|
||||
GoogleApiModelData::Standard(standard_data) => {
|
||||
if standard_data.allowed_payment_methods.is_empty() {
|
||||
None
|
||||
} else {
|
||||
let data = Some(
|
||||
standard_data.allowed_payment_methods[0]
|
||||
.tokenization_specification
|
||||
.parameters
|
||||
.clone(),
|
||||
);
|
||||
match data {
|
||||
Some(data) => Some(GooglePayData::Standard(GpayDashboardPayLoad {
|
||||
gateway_merchant_id: data.gateway_merchant_id,
|
||||
stripe_version: data.stripe_version,
|
||||
stripe_publishable_key: data.stripe_publishable_key,
|
||||
merchant_name: standard_data.merchant_info.merchant_name,
|
||||
merchant_id: standard_data.merchant_info.merchant_id,
|
||||
})),
|
||||
None => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
GoogleApiModelData::Zen(data) => Some(GooglePayData::Zen(data)),
|
||||
},
|
||||
None => None,
|
||||
},
|
||||
None => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
284
crates/connector_configs/src/transformer.rs
Normal file
284
crates/connector_configs/src/transformer.rs
Normal file
@ -0,0 +1,284 @@
|
||||
use std::str::FromStr;
|
||||
|
||||
use api_models::{
|
||||
enums::{
|
||||
Connector, PaymentMethod, PaymentMethodType,
|
||||
PaymentMethodType::{AliPay, ApplePay, GooglePay, Klarna, Paypal, WeChatPay},
|
||||
},
|
||||
payment_methods, payments,
|
||||
};
|
||||
|
||||
use crate::common_config::{
|
||||
ApiModelMetaData, ConnectorApiIntegrationPayload, DashboardMetaData, DashboardRequestPayload,
|
||||
GoogleApiModelData, GooglePayData, PaymentMethodsEnabled,
|
||||
};
|
||||
|
||||
impl DashboardRequestPayload {
|
||||
pub fn transform_card(
|
||||
payment_method_type: PaymentMethodType,
|
||||
card_provider: Vec<api_models::enums::CardNetwork>,
|
||||
) -> payment_methods::RequestPaymentMethodTypes {
|
||||
payment_methods::RequestPaymentMethodTypes {
|
||||
payment_method_type,
|
||||
card_networks: Some(card_provider),
|
||||
minimum_amount: Some(0),
|
||||
maximum_amount: Some(68607706),
|
||||
recurring_enabled: true,
|
||||
installment_payment_enabled: false,
|
||||
accepted_currencies: None,
|
||||
accepted_countries: None,
|
||||
payment_experience: None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_payment_experience(
|
||||
connector: Connector,
|
||||
payment_method_type: PaymentMethodType,
|
||||
payment_method: PaymentMethod,
|
||||
) -> Option<api_models::enums::PaymentExperience> {
|
||||
match payment_method {
|
||||
PaymentMethod::BankRedirect => None,
|
||||
_ => match (connector, payment_method_type) {
|
||||
#[cfg(feature = "dummy_connector")]
|
||||
(Connector::DummyConnector4, _) | (Connector::DummyConnector7, _) => {
|
||||
Some(api_models::enums::PaymentExperience::RedirectToUrl)
|
||||
}
|
||||
(Connector::Zen, GooglePay) | (Connector::Zen, ApplePay) => {
|
||||
Some(api_models::enums::PaymentExperience::RedirectToUrl)
|
||||
}
|
||||
(Connector::Braintree, Paypal) | (Connector::Klarna, Klarna) => {
|
||||
Some(api_models::enums::PaymentExperience::InvokeSdkClient)
|
||||
}
|
||||
(Connector::Globepay, AliPay)
|
||||
| (Connector::Globepay, WeChatPay)
|
||||
| (Connector::Stripe, WeChatPay) => {
|
||||
Some(api_models::enums::PaymentExperience::DisplayQrCode)
|
||||
}
|
||||
(_, GooglePay) | (_, ApplePay) => {
|
||||
Some(api_models::enums::PaymentExperience::InvokeSdkClient)
|
||||
}
|
||||
_ => Some(api_models::enums::PaymentExperience::RedirectToUrl),
|
||||
},
|
||||
}
|
||||
}
|
||||
pub fn transform_payment_method(
|
||||
connector: Connector,
|
||||
provider: Vec<PaymentMethodType>,
|
||||
payment_method: PaymentMethod,
|
||||
) -> Vec<payment_methods::RequestPaymentMethodTypes> {
|
||||
let mut payment_method_types = Vec::new();
|
||||
for method_type in provider {
|
||||
let data = payment_methods::RequestPaymentMethodTypes {
|
||||
payment_method_type: method_type,
|
||||
card_networks: None,
|
||||
minimum_amount: Some(0),
|
||||
maximum_amount: Some(68607706),
|
||||
recurring_enabled: true,
|
||||
installment_payment_enabled: false,
|
||||
accepted_currencies: None,
|
||||
accepted_countries: None,
|
||||
payment_experience: Self::get_payment_experience(
|
||||
connector,
|
||||
method_type,
|
||||
payment_method,
|
||||
),
|
||||
};
|
||||
payment_method_types.push(data)
|
||||
}
|
||||
payment_method_types
|
||||
}
|
||||
|
||||
pub fn create_connector_request(
|
||||
request: Self,
|
||||
api_response: ConnectorApiIntegrationPayload,
|
||||
) -> ConnectorApiIntegrationPayload {
|
||||
let mut card_payment_method_types = Vec::new();
|
||||
let mut payment_method_enabled = Vec::new();
|
||||
|
||||
if let Some(payment_methods_enabled) = request.payment_methods_enabled.clone() {
|
||||
for payload in payment_methods_enabled {
|
||||
match payload.payment_method {
|
||||
api_models::enums::PaymentMethod::Card => {
|
||||
if let Some(card_provider) = payload.card_provider {
|
||||
let payment_type = api_models::enums::PaymentMethodType::from_str(
|
||||
&payload.payment_method_type,
|
||||
)
|
||||
.map_err(|_| "Invalid key received".to_string());
|
||||
|
||||
if let Ok(payment_type) = payment_type {
|
||||
for method in card_provider {
|
||||
let data = payment_methods::RequestPaymentMethodTypes {
|
||||
payment_method_type: payment_type,
|
||||
card_networks: Some(vec![method]),
|
||||
minimum_amount: Some(0),
|
||||
maximum_amount: Some(68607706),
|
||||
recurring_enabled: true,
|
||||
installment_payment_enabled: false,
|
||||
accepted_currencies: None,
|
||||
accepted_countries: None,
|
||||
payment_experience: None,
|
||||
};
|
||||
card_payment_method_types.push(data)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
api_models::enums::PaymentMethod::Wallet
|
||||
| api_models::enums::PaymentMethod::BankRedirect
|
||||
| api_models::enums::PaymentMethod::PayLater
|
||||
| api_models::enums::PaymentMethod::BankTransfer
|
||||
| api_models::enums::PaymentMethod::Crypto
|
||||
| api_models::enums::PaymentMethod::BankDebit
|
||||
| api_models::enums::PaymentMethod::Reward
|
||||
| api_models::enums::PaymentMethod::Upi
|
||||
| api_models::enums::PaymentMethod::Voucher
|
||||
| api_models::enums::PaymentMethod::GiftCard
|
||||
| api_models::enums::PaymentMethod::CardRedirect => {
|
||||
if let Some(provider) = payload.provider {
|
||||
let val = Self::transform_payment_method(
|
||||
request.connector,
|
||||
provider,
|
||||
payload.payment_method,
|
||||
);
|
||||
if !val.is_empty() {
|
||||
let methods = PaymentMethodsEnabled {
|
||||
payment_method: payload.payment_method,
|
||||
payment_method_types: Some(val),
|
||||
};
|
||||
payment_method_enabled.push(methods);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
if !card_payment_method_types.is_empty() {
|
||||
let card = PaymentMethodsEnabled {
|
||||
payment_method: api_models::enums::PaymentMethod::Card,
|
||||
payment_method_types: Some(card_payment_method_types),
|
||||
};
|
||||
payment_method_enabled.push(card);
|
||||
}
|
||||
}
|
||||
|
||||
let metadata = Self::transform_metedata(request);
|
||||
ConnectorApiIntegrationPayload {
|
||||
connector_type: api_response.connector_type,
|
||||
profile_id: api_response.profile_id,
|
||||
connector_name: api_response.connector_name,
|
||||
connector_label: api_response.connector_label,
|
||||
merchant_connector_id: api_response.merchant_connector_id,
|
||||
disabled: api_response.disabled,
|
||||
test_mode: api_response.test_mode,
|
||||
payment_methods_enabled: Some(payment_method_enabled),
|
||||
connector_webhook_details: api_response.connector_webhook_details,
|
||||
metadata,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn transform_metedata(request: Self) -> Option<ApiModelMetaData> {
|
||||
let default_metadata = DashboardMetaData {
|
||||
apple_pay_combined: None,
|
||||
google_pay: None,
|
||||
apple_pay: None,
|
||||
account_name: None,
|
||||
terminal_id: None,
|
||||
merchant_account_id: None,
|
||||
merchant_id: None,
|
||||
merchant_config_currency: None,
|
||||
};
|
||||
let meta_data = match request.metadata {
|
||||
Some(data) => data,
|
||||
None => default_metadata,
|
||||
};
|
||||
let google_pay = Self::get_google_pay_details(meta_data.clone(), request.connector);
|
||||
let account_name = meta_data.account_name.clone();
|
||||
let merchant_account_id = meta_data.merchant_account_id.clone();
|
||||
let merchant_id = meta_data.merchant_id.clone();
|
||||
let terminal_id = meta_data.terminal_id.clone();
|
||||
let apple_pay = meta_data.apple_pay;
|
||||
let apple_pay_combined = meta_data.apple_pay_combined;
|
||||
let merchant_config_currency = meta_data.merchant_config_currency;
|
||||
Some(ApiModelMetaData {
|
||||
google_pay,
|
||||
apple_pay,
|
||||
account_name,
|
||||
merchant_account_id,
|
||||
terminal_id,
|
||||
merchant_id,
|
||||
merchant_config_currency,
|
||||
apple_pay_combined,
|
||||
})
|
||||
}
|
||||
|
||||
fn get_custom_gateway_name(connector: Connector) -> String {
|
||||
match connector {
|
||||
Connector::Checkout => String::from("checkoutltd"),
|
||||
Connector::Nuvei => String::from("nuveidigital"),
|
||||
Connector::Authorizedotnet => String::from("authorizenet"),
|
||||
Connector::Globalpay => String::from("globalpayments"),
|
||||
Connector::Bankofamerica | Connector::Cybersource => String::from("cybersource"),
|
||||
_ => connector.to_string(),
|
||||
}
|
||||
}
|
||||
fn get_google_pay_details(
|
||||
meta_data: DashboardMetaData,
|
||||
connector: Connector,
|
||||
) -> Option<GoogleApiModelData> {
|
||||
match meta_data.google_pay {
|
||||
Some(gpay_data) => {
|
||||
let google_pay_data = match gpay_data {
|
||||
GooglePayData::Standard(data) => {
|
||||
let token_parameter = payments::GpayTokenParameters {
|
||||
gateway: Self::get_custom_gateway_name(connector),
|
||||
gateway_merchant_id: data.gateway_merchant_id,
|
||||
stripe_version: match connector {
|
||||
Connector::Stripe => Some(String::from("2018-10-31")),
|
||||
_ => None,
|
||||
},
|
||||
stripe_publishable_key: match connector {
|
||||
Connector::Stripe => data.stripe_publishable_key,
|
||||
_ => None,
|
||||
},
|
||||
};
|
||||
let merchant_info = payments::GpayMerchantInfo {
|
||||
merchant_name: data.merchant_name,
|
||||
merchant_id: data.merchant_id,
|
||||
};
|
||||
let token_specification = payments::GpayTokenizationSpecification {
|
||||
token_specification_type: String::from("PAYMENT_GATEWAY"),
|
||||
parameters: token_parameter,
|
||||
};
|
||||
let allowed_payment_methods_parameters =
|
||||
payments::GpayAllowedMethodsParameters {
|
||||
allowed_auth_methods: vec![
|
||||
"PAN_ONLY".to_string(),
|
||||
"CRYPTOGRAM_3DS".to_string(),
|
||||
],
|
||||
allowed_card_networks: vec![
|
||||
"AMEX".to_string(),
|
||||
"DISCOVER".to_string(),
|
||||
"INTERAC".to_string(),
|
||||
"JCB".to_string(),
|
||||
"MASTERCARD".to_string(),
|
||||
"VISA".to_string(),
|
||||
],
|
||||
};
|
||||
let allowed_payment_methods = payments::GpayAllowedPaymentMethods {
|
||||
payment_method_type: String::from("CARD"),
|
||||
parameters: allowed_payment_methods_parameters,
|
||||
tokenization_specification: token_specification,
|
||||
};
|
||||
GoogleApiModelData::Standard(payments::GpayMetaData {
|
||||
merchant_info,
|
||||
allowed_payment_methods: vec![allowed_payment_methods],
|
||||
})
|
||||
}
|
||||
GooglePayData::Zen(data) => GoogleApiModelData::Zen(data),
|
||||
};
|
||||
Some(google_pay_data)
|
||||
}
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
789
crates/connector_configs/toml/development.toml
Normal file
789
crates/connector_configs/toml/development.toml
Normal file
@ -0,0 +1,789 @@
|
||||
|
||||
[aci]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["ali_pay","mb_way"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps","przelewy24","trustly","interac"]
|
||||
[aci.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Entity ID"
|
||||
[aci.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[adyen]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
pay_later=["klarna","affirm","afterpay_clearpay","pay_bright","walley", "alma", "atome"]
|
||||
bank_debit=["ach","bacs","sepa"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps","blik","przelewy24","trustly","online_banking_czech_republic","online_banking_finland","online_banking_poland","online_banking_slovakia","bancontact_card", "online_banking_fpx", "online_banking_thailand", "bizum", "open_banking_uk"]
|
||||
bank_transfer = ["permata_bank_transfer", "bca_bank_transfer", "bni_va", "bri_va", "cimb_va", "danamon_va", "mandiri_va"]
|
||||
wallet = ["apple_pay","google_pay","paypal","we_chat_pay","ali_pay","mb_way", "ali_pay_hk", "go_pay", "kakao_pay", "twint", "gcash", "vipps", "dana", "momo", "swish", "touch_n_go"]
|
||||
voucher = ["boleto", "alfamart", "indomaret", "oxxo", "seven_eleven", "lawson", "mini_stop", "family_mart", "seicomart", "pay_easy"]
|
||||
gift_card = ["pay_safe_card", "givex"]
|
||||
card_redirect = ["benefit", "knet", "momo_atm"]
|
||||
[adyen.connector_auth.BodyKey]
|
||||
api_key="Adyen API Key"
|
||||
key1="Adyen Account Id"
|
||||
[adyen.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[adyen.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[adyen.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[adyen.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
|
||||
|
||||
[airwallex]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay"]
|
||||
body_type="BodyKey"
|
||||
[airwallex.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Client ID"
|
||||
[airwallex.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[authorizedotnet]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay","paypal"]
|
||||
body_type="BodyKey"
|
||||
[authorizedotnet.connector_auth.BodyKey]
|
||||
api_key="API Login ID"
|
||||
key1="Transaction Key"
|
||||
[authorizedotnet.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
[authorizedotnet.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bitpay]
|
||||
crypto = ["crypto_currency"]
|
||||
[bitpay.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[bitpay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bluesnap]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay","apple_pay"]
|
||||
[bluesnap.connector_auth.BodyKey]
|
||||
api_key="Password"
|
||||
key1="Username"
|
||||
[bluesnap.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bluesnap.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[bluesnap.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[bluesnap.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
[bluesnap.metadata]
|
||||
merchant_id="Merchant Id"
|
||||
|
||||
|
||||
[braintree]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[braintree.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
|
||||
[braintree.connector_auth.SignatureKey]
|
||||
api_key="Public Key"
|
||||
key1="Merchant Id"
|
||||
api_secret="Private Key"
|
||||
[braintree.metadata]
|
||||
merchant_account_id="Merchant Account Id"
|
||||
merchant_config_currency="Currency"
|
||||
|
||||
[checkout]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","google_pay","paypal"]
|
||||
[checkout.connector_auth.SignatureKey]
|
||||
api_key="Checkout API Public Key"
|
||||
key1="Processing Channel ID"
|
||||
api_secret="Checkout API Secret Key"
|
||||
[checkout.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[checkout.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[checkout.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[checkout.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
|
||||
|
||||
[coinbase]
|
||||
crypto = ["crypto_currency"]
|
||||
[coinbase.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[coinbase.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[cybersource]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
[cybersource.connector_auth.SignatureKey]
|
||||
api_key="Key"
|
||||
key1="Merchant ID"
|
||||
api_secret="Shared Secret"
|
||||
[cybersource.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[cybersource.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[cybersource.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[cybersource.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[iatapay]
|
||||
upi=["upi_collect"]
|
||||
[iatapay.connector_auth.SignatureKey]
|
||||
api_key="Client ID"
|
||||
key1="Airline ID"
|
||||
api_secret="Client Secret"
|
||||
[iatapay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[opennode]
|
||||
crypto = ["crypto_currency"]
|
||||
[opennode.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[opennode.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[prophetpay]
|
||||
card_redirect = ["card_redirect"]
|
||||
[prophetpay.connector_auth.SignatureKey]
|
||||
api_key="Username"
|
||||
key1="Token"
|
||||
api_secret="Profile"
|
||||
|
||||
|
||||
[bambora]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","paypal"]
|
||||
[bambora.connector_auth.BodyKey]
|
||||
api_key="Passcode"
|
||||
key1="Merchant Id"
|
||||
[bambora.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bambora.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[bambora.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[boku]
|
||||
wallet = ["dana","gcash","go_pay","kakao_pay","momo"]
|
||||
[boku.connector_auth.BodyKey]
|
||||
api_key="API KEY"
|
||||
key1= "MERCHANT ID"
|
||||
[boku.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[dlocal]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[dlocal.connector_auth.SignatureKey]
|
||||
api_key="X Login"
|
||||
key1="X Trans Key"
|
||||
api_secret="Secret Key"
|
||||
[dlocal.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[fiserv]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[fiserv.connector_auth.SignatureKey]
|
||||
api_key="API Key"
|
||||
key1="Merchant ID"
|
||||
api_secret="API Secret"
|
||||
[fiserv.metadata]
|
||||
terminal_id="Terminal ID"
|
||||
[fiserv.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[forte]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[forte.connector_auth.MultiAuthKey]
|
||||
api_key="API Access ID"
|
||||
key1="Organization ID"
|
||||
api_secret="API Secure Key"
|
||||
key2="Location ID"
|
||||
[forte.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[globalpay]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
wallet = ["google_pay","paypal"]
|
||||
[globalpay.connector_auth.BodyKey]
|
||||
api_key="Global App Key"
|
||||
key1="Global App ID"
|
||||
[globalpay.metadata]
|
||||
account_name="Account Name"
|
||||
[globalpay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[globalpay.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[klarna]
|
||||
pay_later=["klarna"]
|
||||
[klarna.connector_auth.HeaderKey]
|
||||
api_key="Klarna API Key"
|
||||
[klarna.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[mollie]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps","przelewy24","bancontact_card"]
|
||||
wallet = ["paypal"]
|
||||
[mollie.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Profile Token"
|
||||
[mollie.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[multisafepay]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay","paypal"]
|
||||
[multisafepay.connector_auth.HeaderKey]
|
||||
api_key="Enter API Key"
|
||||
[multisafepay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[multisafepay.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[nexinets]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
wallet = ["apple_pay","paypal"]
|
||||
[nexinets.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Merchant ID"
|
||||
[nexinets.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[nexinets.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[nexinets.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[nmi]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
[nmi.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[nmi.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[nmi.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[nmi.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[nmi.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[noon]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","google_pay","paypal"]
|
||||
[noon.connector_auth.SignatureKey]
|
||||
api_key="API Key"
|
||||
key1="Business Identifier"
|
||||
api_secret="Application Identifier"
|
||||
[noon.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[noon.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[noon.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[noon.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[nuvei]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
pay_later=["klarna","afterpay_clearpay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
wallet = ["apple_pay","google_pay","paypal"]
|
||||
[nuvei.connector_auth.SignatureKey]
|
||||
api_key="Merchant ID"
|
||||
key1="Merchant Site ID"
|
||||
api_secret="Merchant Secret"
|
||||
[nuvei.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[nuvei.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[nuvei.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[nuvei.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[paypal]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["paypal"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
is_verifiable = true
|
||||
[paypal.connector_auth.BodyKey]
|
||||
api_key="Client Secret"
|
||||
key1="Client ID"
|
||||
[paypal.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[payu]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay"]
|
||||
[payu.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Merchant POS ID"
|
||||
[payu.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[payu.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[rapyd]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay"]
|
||||
[rapyd.connector_auth.BodyKey]
|
||||
api_key="Access Key"
|
||||
key1="API Secret"
|
||||
[rapyd.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[rapyd.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[rapyd.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[shift4]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
[shift4.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[shift4.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[stripe]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
pay_later=["klarna","affirm","afterpay_clearpay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps","bancontact_card","przelewy24"]
|
||||
bank_debit=["ach","bacs","becs","sepa"]
|
||||
bank_transfer=["ach","bacs","sepa", "multibanco"]
|
||||
wallet = ["apple_pay","google_pay","we_chat_pay","ali_pay", "cashapp"]
|
||||
is_verifiable = true
|
||||
[stripe.connector_auth.HeaderKey]
|
||||
api_key="Secret Key"
|
||||
[stripe.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[stripe.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
stripe_publishable_key="Stripe Publishable Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[stripe.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[stripe.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[zen]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
voucher = ["boleto", "efecty", "pago_efectivo", "red_compra", "red_pagos"]
|
||||
bank_transfer = ["pix", "pse"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
[zen.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[zen.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[zen.metadata.apple_pay]
|
||||
terminal_uuid="Terminal UUID"
|
||||
pay_wall_secret="Pay Wall Secret"
|
||||
[zen.metadata.google_pay]
|
||||
terminal_uuid="Terminal UUID"
|
||||
pay_wall_secret="Pay Wall Secret"
|
||||
|
||||
[trustpay]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps","blik"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
[trustpay.connector_auth.SignatureKey]
|
||||
api_key="API Key"
|
||||
key1="Project ID"
|
||||
api_secret="Secret Key"
|
||||
[trustpay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[trustpay.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[trustpay.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[worldline]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay"]
|
||||
[worldline.connector_auth.SignatureKey]
|
||||
api_key="API Key ID"
|
||||
key1="Merchant ID"
|
||||
api_secret="Secret API Key"
|
||||
[worldline.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[worldpay]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay","apple_pay"]
|
||||
[worldpay.connector_auth.BodyKey]
|
||||
api_key="Username"
|
||||
key1="Password"
|
||||
[worldpay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[worldpay.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[worldpay.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[worldpay.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[cashtocode]
|
||||
reward = ["classic", "evoucher"]
|
||||
[cashtocode.connector_auth.CurrencyAuthKey.auth_key_map.EUR]
|
||||
password_classic="Password Classic"
|
||||
username_classic="Username Classic"
|
||||
merchant_id_classic="MerchantId Classic"
|
||||
password_evoucher="Password Evoucher"
|
||||
username_evoucher="Username Evoucher"
|
||||
merchant_id_evoucher="MerchantId Evoucher"
|
||||
[cashtocode.connector_auth.CurrencyAuthKey.auth_key_map.GBP]
|
||||
password_classic="Password Classic"
|
||||
username_classic="Username Classic"
|
||||
merchant_id_classic="MerchantId Classic"
|
||||
password_evoucher="Password Evoucher"
|
||||
username_evoucher="Username Evoucher"
|
||||
merchant_id_evoucher="MerchantId Evoucher"
|
||||
[cashtocode.connector_auth.CurrencyAuthKey.auth_key_map.USD]
|
||||
password_classic="Password Classic"
|
||||
username_classic="Username Classic"
|
||||
merchant_id_classic="MerchantId Classic"
|
||||
password_evoucher="Password Evoucher"
|
||||
username_evoucher="Username Evoucher"
|
||||
merchant_id_evoucher="MerchantId Evoucher"
|
||||
[cashtocode.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[cryptopay]
|
||||
crypto = ["crypto_currency"]
|
||||
[cryptopay.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Secret Key"
|
||||
[cryptopay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[dummy_connector]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[dummy_connector.connector_auth.HeaderKey]
|
||||
api_key="Api Key"
|
||||
|
||||
[helcim]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[helcim.connector_auth.HeaderKey]
|
||||
api_key="Api Key"
|
||||
[helcim.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[stripe_test]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay","ali_pay","we_chat_pay"]
|
||||
pay_later=["klarna","affirm","afterpay_clearpay"]
|
||||
[stripe_test.connector_auth.HeaderKey]
|
||||
api_key="Api Key"
|
||||
|
||||
|
||||
[paypal_test]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["paypal"]
|
||||
[paypal_test.connector_auth.HeaderKey]
|
||||
api_key="Api Key"
|
||||
|
||||
[payme]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[payme.connector_auth.BodyKey]
|
||||
api_key="Seller Payme Id"
|
||||
key1="Payme Public Key"
|
||||
[payme.connector_webhook_details]
|
||||
merchant_secret="Payme Client Secret"
|
||||
additional_secret="Payme Client Key"
|
||||
|
||||
[powertranz]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[powertranz.connector_auth.BodyKey]
|
||||
key1 = "PowerTranz Id"
|
||||
api_key="PowerTranz Password"
|
||||
[powertranz.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[globepay]
|
||||
wallet = ["we_chat_pay","ali_pay"]
|
||||
[globepay.connector_auth.BodyKey]
|
||||
api_key="Partner Code"
|
||||
key1="Credential Code"
|
||||
[globepay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[tsys]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[tsys.connector_auth.SignatureKey]
|
||||
api_key="Device Id"
|
||||
key1="Transaction Key"
|
||||
api_secret="Developer Id"
|
||||
[tsys.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[square]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[square_payout.connector_auth.BodyKey]
|
||||
api_key = "Square API Key"
|
||||
key1 = "Square Client Id"
|
||||
[square.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[stax]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_debit=["ach"]
|
||||
[stax.connector_auth.HeaderKey]
|
||||
api_key="Api Key"
|
||||
[stax.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[volt]
|
||||
bank_redirect = ["open_banking_uk"]
|
||||
[volt.connector_auth.MultiAuthKey]
|
||||
api_key = "Username"
|
||||
api_secret = "Password"
|
||||
key1 = "Client ID"
|
||||
key2 = "Client Secret"
|
||||
|
||||
[wise_payout]
|
||||
bank_transfer = ["ach","bacs","sepa"]
|
||||
[wise_payout.connector_auth.BodyKey]
|
||||
api_key = "Wise API Key"
|
||||
key1 = "Wise Account Id"
|
||||
|
||||
[adyen_payout]
|
||||
bank_transfer = ["ach","bacs","sepa"]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[adyen_payout.connector_auth.SignatureKey]
|
||||
api_key = "Adyen API Key (Payout creation)"
|
||||
api_secret = "Adyen Key (Payout submission)"
|
||||
key1 = "Adyen Account Id"
|
||||
|
||||
[gocardless]
|
||||
bank_debit=["ach","becs","sepa"]
|
||||
[gocardless.connector_auth.HeaderKey]
|
||||
api_key="Access Token"
|
||||
[gocardless.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bankofamerica]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
|
||||
[bankofamerica.connector_auth.SignatureKey]
|
||||
api_key="Key"
|
||||
key1="Merchant ID"
|
||||
api_secret="Shared Secret"
|
||||
[bankofamerica.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bankofamerica.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[bankofamerica.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[bankofamerica.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[placetopay]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
|
||||
[placetopay.connector_auth.BodyKey]
|
||||
api_key="Login"
|
||||
key1="Trankey"
|
||||
614
crates/connector_configs/toml/production.toml
Normal file
614
crates/connector_configs/toml/production.toml
Normal file
@ -0,0 +1,614 @@
|
||||
|
||||
[aci]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["ali_pay","mb_way"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps","przelewy24","trustly"]
|
||||
[aci.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Entity ID"
|
||||
[aci.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[adyen]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
pay_later=["klarna","affirm","afterpay_clearpay"]
|
||||
bank_debit=["ach","bacs"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
wallet = ["apple_pay","google_pay","paypal"]
|
||||
[adyen.connector_auth.BodyKey]
|
||||
api_key="Adyen API Key"
|
||||
key1="Adyen Account Id"
|
||||
[adyen.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[adyen.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[adyen.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[adyen.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
|
||||
|
||||
[airwallex]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
body_type="BodyKey"
|
||||
[airwallex.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Client ID"
|
||||
[airwallex.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[authorizedotnet]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay","paypal"]
|
||||
body_type="BodyKey"
|
||||
[authorizedotnet.connector_auth.BodyKey]
|
||||
api_key="API Login ID"
|
||||
key1="Transaction Key"
|
||||
[authorizedotnet.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
[authorizedotnet.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bitpay]
|
||||
crypto = ["crypto_currency"]
|
||||
[bitpay.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[bitpay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bluesnap]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay","apple_pay"]
|
||||
[bluesnap.connector_auth.BodyKey]
|
||||
api_key="Password"
|
||||
key1="Username"
|
||||
[bluesnap.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bluesnap.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[bluesnap.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[bluesnap.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
[bluesnap.metadata]
|
||||
merchant_id="Merchant Id"
|
||||
|
||||
[braintree]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
|
||||
[braintree.connector_auth.SignatureKey]
|
||||
api_key="Public Key"
|
||||
key1="Merchant Id"
|
||||
api_secret="Private Key"
|
||||
[braintree.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[checkout]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
[checkout.connector_auth.SignatureKey]
|
||||
api_key="Checkout API Public Key"
|
||||
key1="Processing Channel ID"
|
||||
api_secret="Checkout API Secret Key"
|
||||
[checkout.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[checkout.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[checkout.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[checkout.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
|
||||
|
||||
[coinbase]
|
||||
crypto = ["crypto_currency"]
|
||||
[coinbase.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[coinbase.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[cybersource]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
[cybersource.connector_auth.SignatureKey]
|
||||
api_key="Key"
|
||||
key1="Merchant ID"
|
||||
api_secret="Shared Secret"
|
||||
[cybersource.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[cybersource.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[cybersource.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[cybersource.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[iatapay]
|
||||
upi=["upi_collect"]
|
||||
[iatapay.connector_auth.SignatureKey]
|
||||
api_key="Client ID"
|
||||
key1="Airline ID"
|
||||
api_secret="Client Secret"
|
||||
[iatapay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[opennode]
|
||||
crypto = ["crypto_currency"]
|
||||
[opennode.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[opennode.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bambora]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","paypal"]
|
||||
[bambora.connector_auth.BodyKey]
|
||||
api_key="Passcode"
|
||||
key1="Merchant Id"
|
||||
[bambora.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bambora.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[bambora.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[dlocal]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[dlocal.connector_auth.SignatureKey]
|
||||
api_key="X Login"
|
||||
key1="X Trans Key"
|
||||
api_secret="Secret Key"
|
||||
[dlocal.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
|
||||
[fiserv]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[fiserv.connector_auth.SignatureKey]
|
||||
api_key="API Key"
|
||||
key1="Merchant ID"
|
||||
api_secret="API Secret"
|
||||
[fiserv.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
[fiserv.metadata]
|
||||
terminal_id="Terminal ID"
|
||||
|
||||
[forte]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[forte.connector_auth.MultiAuthKey]
|
||||
api_key="API Access ID"
|
||||
key1="Organization ID"
|
||||
api_secret="API Secure Key"
|
||||
key2="Location ID"
|
||||
[forte.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
|
||||
[globalpay]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
wallet = ["google_pay","paypal"]
|
||||
[globalpay.connector_auth.BodyKey]
|
||||
api_key="Global App Key"
|
||||
key1="Global App ID"
|
||||
[globalpay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[globalpay.metadata]
|
||||
account_name="Account Name"
|
||||
|
||||
[globalpay.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[klarna]
|
||||
pay_later=["klarna"]
|
||||
[klarna.connector_auth.HeaderKey]
|
||||
api_key="Klarna API Key"
|
||||
[klarna.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[mollie]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
wallet = ["paypal"]
|
||||
[mollie.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Profile Token"
|
||||
[mollie.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[multisafepay]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[multisafepay.connector_auth.HeaderKey]
|
||||
api_key="Enter API Key"
|
||||
[multisafepay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
|
||||
[nexinets]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
wallet = ["apple_pay","paypal"]
|
||||
[nexinets.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Merchant ID"
|
||||
[nexinets.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[nexinets.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[nexinets.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[nmi]
|
||||
bank_redirect=["ideal"]
|
||||
[nmi.connector_auth.SignatureKey]
|
||||
api_key="Client ID"
|
||||
key1="Airline ID"
|
||||
api_secret="Client Secret"
|
||||
[nmi.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[nuvei]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[nuvei.connector_auth.SignatureKey]
|
||||
api_key="Merchant ID"
|
||||
key1="Merchant Site ID"
|
||||
api_secret="Merchant Secret"
|
||||
[nuvei.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[paypal]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["paypal"]
|
||||
is_verifiable = true
|
||||
[paypal.connector_auth.BodyKey]
|
||||
api_key="Client Secret"
|
||||
key1="Client ID"
|
||||
[paypal.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[payu]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay"]
|
||||
[payu.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Merchant POS ID"
|
||||
[payu.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[payu.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[rapyd]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay"]
|
||||
[rapyd.connector_auth.BodyKey]
|
||||
api_key="Access Key"
|
||||
key1="API Secret"
|
||||
[rapyd.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[rapyd.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[rapyd.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[shift4]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
[shift4.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[shift4.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[stripe]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
pay_later=["klarna","affirm","afterpay_clearpay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
bank_debit=["ach","becs","sepa"]
|
||||
bank_transfer=["ach","bacs","sepa"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
is_verifiable = true
|
||||
[stripe.connector_auth.HeaderKey]
|
||||
api_key="Secret Key"
|
||||
[stripe.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[stripe.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
stripe_publishable_key="Stripe Publishable Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[stripe.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[stripe.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[zen]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
voucher = ["boleto", "efecty", "pago_efectivo", "red_compra", "red_pagos"]
|
||||
bank_transfer = ["pix", "pse"]
|
||||
[zen.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[zen.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[zen.metadata.apple_pay]
|
||||
terminal_uuid="Terminal UUID"
|
||||
pay_wall_secret="Pay Wall Secret"
|
||||
[zen.metadata.google_pay]
|
||||
terminal_uuid="Terminal UUID"
|
||||
pay_wall_secret="Pay Wall Secret"
|
||||
|
||||
|
||||
[trustpay]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps", "blik"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
[trustpay.connector_auth.SignatureKey]
|
||||
api_key="API Key"
|
||||
key1="Project ID"
|
||||
api_secret="Secret Key"
|
||||
[trustpay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[trustpay.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[trustpay.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[worldline]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay"]
|
||||
[worldline.connector_auth.SignatureKey]
|
||||
api_key="API Key ID"
|
||||
key1="Merchant ID"
|
||||
api_secret="Secret API Key"
|
||||
[worldline.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[worldpay]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay","apple_pay"]
|
||||
[worldpay.connector_auth.BodyKey]
|
||||
api_key="Username"
|
||||
key1="Password"
|
||||
|
||||
[worldpay.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[worldpay.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[worldpay.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
[worldpay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[dummy_connector]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
|
||||
[payme]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[payme.connector_auth.BodyKey]
|
||||
api_key="Seller Payme Id"
|
||||
key1="Payme Public Key"
|
||||
[payme.connector_webhook_details]
|
||||
merchant_secret="Payme Client Secret"
|
||||
additional_secret="Payme Client Key"
|
||||
|
||||
[powertranz]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[powertranz.connector_auth.BodyKey]
|
||||
key1 = "PowerTranz Id"
|
||||
api_key="PowerTranz Password"
|
||||
[powertranz.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[globepay]
|
||||
wallet = ["we_chat_pay","ali_pay"]
|
||||
[globepay.connector_auth.BodyKey]
|
||||
api_key="Partner Code"
|
||||
key1="Credential Code"
|
||||
[globepay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[tsys]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[tsys.connector_auth.SignatureKey]
|
||||
api_key="Device Id"
|
||||
key1="Transaction Key"
|
||||
api_secret="Developer Id"
|
||||
[tsys.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[cashtocode]
|
||||
reward = ["classic", "evoucher"]
|
||||
[cashtocode.connector_auth.CurrencyAuthKey.auth_key_map.EUR]
|
||||
password_classic="Password Classic"
|
||||
username_classic="Username Classic"
|
||||
merchant_id_classic="MerchantId Classic"
|
||||
password_evoucher="Password Evoucher"
|
||||
username_evoucher="Username Evoucher"
|
||||
merchant_id_evoucher="MerchantId Evoucher"
|
||||
[cashtocode.connector_auth.CurrencyAuthKey.auth_key_map.GBP]
|
||||
password_classic="Password Classic"
|
||||
username_classic="Username Classic"
|
||||
merchant_id_classic="MerchantId Classic"
|
||||
password_evoucher="Password Evoucher"
|
||||
username_evoucher="Username Evoucher"
|
||||
merchant_id_evoucher="MerchantId Evoucher"
|
||||
[cashtocode.connector_auth.CurrencyAuthKey.auth_key_map.USD]
|
||||
password_classic="Password Classic"
|
||||
username_classic="Username Classic"
|
||||
merchant_id_classic="MerchantId Classic"
|
||||
password_evoucher="Password Evoucher"
|
||||
username_evoucher="Username Evoucher"
|
||||
merchant_id_evoucher="MerchantId Evoucher"
|
||||
[cashtocode.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[cryptopay]
|
||||
crypto = ["crypto_currency"]
|
||||
[cryptopay.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Secret Key"
|
||||
[cryptopay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bankofamerica]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
|
||||
[bankofamerica.connector_auth.SignatureKey]
|
||||
api_key="Key"
|
||||
key1="Merchant ID"
|
||||
api_secret="Shared Secret"
|
||||
[bankofamerica.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bankofamerica.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[bankofamerica.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[bankofamerica.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
786
crates/connector_configs/toml/sandbox.toml
Normal file
786
crates/connector_configs/toml/sandbox.toml
Normal file
@ -0,0 +1,786 @@
|
||||
|
||||
[aci]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["ali_pay","mb_way"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps","przelewy24","trustly","interac"]
|
||||
[aci.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Entity ID"
|
||||
[aci.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[adyen]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
pay_later=["klarna","affirm","afterpay_clearpay","pay_bright","walley", "alma", "atome"]
|
||||
bank_debit=["ach","bacs","sepa"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps","blik","przelewy24","trustly","online_banking_czech_republic","online_banking_finland","online_banking_poland","online_banking_slovakia","bancontact_card", "online_banking_fpx", "online_banking_thailand", "bizum", "open_banking_uk"]
|
||||
wallet = ["apple_pay","google_pay","paypal","we_chat_pay","ali_pay","mb_way", "ali_pay_hk", "go_pay", "kakao_pay", "twint", "gcash", "vipps", "momo", "dana", "swish", "touch_n_go"]
|
||||
bank_transfer = ["permata_bank_transfer", "bca_bank_transfer", "bni_va", "bri_va", "cimb_va", "danamon_va", "mandiri_va"]
|
||||
voucher = ["boleto", "alfamart", "indomaret", "oxxo", "seven_eleven", "lawson", "mini_stop", "family_mart", "seicomart", "pay_easy"]
|
||||
gift_card = ["pay_safe_card", "givex"]
|
||||
card_redirect = ["benefit", "knet", "momo_atm"]
|
||||
|
||||
[adyen.connector_auth.BodyKey]
|
||||
api_key="Adyen API Key"
|
||||
key1="Adyen Account Id"
|
||||
[adyen.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[adyen.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[adyen.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[adyen.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
|
||||
|
||||
[airwallex]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay"]
|
||||
body_type="BodyKey"
|
||||
[airwallex.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Client ID"
|
||||
[airwallex.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[authorizedotnet]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay","paypal"]
|
||||
body_type="BodyKey"
|
||||
[authorizedotnet.connector_auth.BodyKey]
|
||||
api_key="API Login ID"
|
||||
key1="Transaction Key"
|
||||
[authorizedotnet.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
[authorizedotnet.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bitpay]
|
||||
crypto = ["crypto_currency"]
|
||||
[bitpay.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[bitpay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bluesnap]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay","apple_pay"]
|
||||
[bluesnap.connector_auth.BodyKey]
|
||||
api_key="Password"
|
||||
key1="Username"
|
||||
[bluesnap.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bluesnap.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[bluesnap.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[bluesnap.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
[bluesnap.metadata]
|
||||
merchant_id="Merchant Id"
|
||||
|
||||
|
||||
[braintree]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
|
||||
[braintree.connector_auth.SignatureKey]
|
||||
api_key="Public Key"
|
||||
key1="Merchant Id"
|
||||
api_secret="Private Key"
|
||||
[braintree.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
[braintree.metadata]
|
||||
merchant_account_id="Merchant Account Id"
|
||||
merchant_config_currency="Currency"
|
||||
|
||||
[checkout]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","google_pay","paypal"]
|
||||
[checkout.connector_auth.SignatureKey]
|
||||
api_key="Checkout API Public Key"
|
||||
key1="Processing Channel ID"
|
||||
api_secret="Checkout API Secret Key"
|
||||
[checkout.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[checkout.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[checkout.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[checkout.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
|
||||
|
||||
[coinbase]
|
||||
crypto = ["crypto_currency"]
|
||||
[coinbase.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[coinbase.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[cybersource]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
[cybersource.connector_auth.SignatureKey]
|
||||
api_key="Key"
|
||||
key1="Merchant ID"
|
||||
api_secret="Shared Secret"
|
||||
[cybersource.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[cybersource.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[cybersource.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[cybersource.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[helcim]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[helcim.connector_auth.HeaderKey]
|
||||
api_key="Api Key"
|
||||
[helcim.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[iatapay]
|
||||
upi=["upi_collect"]
|
||||
[iatapay.connector_auth.SignatureKey]
|
||||
api_key="Client ID"
|
||||
key1="Airline ID"
|
||||
api_secret="Client Secret"
|
||||
[iatapay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[opennode]
|
||||
crypto = ["crypto_currency"]
|
||||
[opennode.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[opennode.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bambora]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","paypal"]
|
||||
[bambora.connector_auth.BodyKey]
|
||||
api_key="Passcode"
|
||||
key1="Merchant Id"
|
||||
[bambora.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bambora.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[bambora.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[boku]
|
||||
wallet = ["dana","gcash","go_pay","kakao_pay","momo"]
|
||||
[boku.connector_auth.BodyKey]
|
||||
api_key="API KEY"
|
||||
key1= "MERCHANT ID"
|
||||
[boku.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[dlocal]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[dlocal.connector_auth.SignatureKey]
|
||||
api_key="X Login"
|
||||
key1="X Trans Key"
|
||||
api_secret="Secret Key"
|
||||
[dlocal.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[fiserv]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[fiserv.connector_auth.SignatureKey]
|
||||
api_key="API Key"
|
||||
key1="Merchant ID"
|
||||
api_secret="API Secret"
|
||||
[fiserv.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
[fiserv.metadata]
|
||||
terminal_id="Terminal ID"
|
||||
|
||||
[forte]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[forte.connector_auth.MultiAuthKey]
|
||||
api_key="API Access ID"
|
||||
key1="Organization ID"
|
||||
api_secret="API Secure Key"
|
||||
key2="Location ID"
|
||||
[forte.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[globalpay]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
wallet = ["google_pay","paypal"]
|
||||
[globalpay.connector_auth.BodyKey]
|
||||
api_key="Global App Key"
|
||||
key1="Global App ID"
|
||||
[globalpay.metadata]
|
||||
account_name="Account Name"
|
||||
[globalpay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[globalpay.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[klarna]
|
||||
pay_later=["klarna"]
|
||||
[klarna.connector_auth.HeaderKey]
|
||||
api_key="Klarna API Key"
|
||||
[klarna.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[mollie]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps","przelewy24","bancontact_card"]
|
||||
wallet = ["paypal"]
|
||||
[mollie.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Profile Token"
|
||||
[mollie.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[multisafepay]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay","paypal"]
|
||||
[multisafepay.connector_auth.HeaderKey]
|
||||
api_key="Enter API Key"
|
||||
[multisafepay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[multisafepay.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[nexinets]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
wallet = ["apple_pay","paypal"]
|
||||
[nexinets.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Merchant ID"
|
||||
[nexinets.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[nexinets.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[nexinets.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[nmi]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
[nmi.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[nmi.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[nmi.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[nmi.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[nmi.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[noon]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","google_pay","paypal"]
|
||||
[noon.connector_auth.SignatureKey]
|
||||
api_key="API Key"
|
||||
key1="Business Identifier"
|
||||
api_secret="Application Identifier"
|
||||
[noon.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[noon.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[noon.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[noon.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[nuvei]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
pay_later=["klarna","afterpay_clearpay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
wallet = ["apple_pay","google_pay","paypal"]
|
||||
[nuvei.connector_auth.SignatureKey]
|
||||
api_key="Merchant ID"
|
||||
key1="Merchant Site ID"
|
||||
api_secret="Merchant Secret"
|
||||
[nuvei.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[nuvei.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[nuvei.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[paypal]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["paypal"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
is_verifiable = true
|
||||
[paypal.connector_auth.BodyKey]
|
||||
api_key="Client Secret"
|
||||
key1="Client ID"
|
||||
[paypal.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[payu]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay"]
|
||||
[payu.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Merchant POS ID"
|
||||
[payu.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[payu.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[prophetpay]
|
||||
card_redirect = ["card_redirect"]
|
||||
[prophetpay.connector_auth.SignatureKey]
|
||||
api_key="Username"
|
||||
key1="Token"
|
||||
api_secret="Profile"
|
||||
|
||||
|
||||
[rapyd]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay"]
|
||||
[rapyd.connector_auth.BodyKey]
|
||||
api_key="Access Key"
|
||||
key1="API Secret"
|
||||
[rapyd.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[rapyd.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[rapyd.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[shift4]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps"]
|
||||
[shift4.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[shift4.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[stripe]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
pay_later=["klarna","affirm","afterpay_clearpay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps","bancontact_card","przelewy24"]
|
||||
bank_debit=["ach","bacs","becs","sepa"]
|
||||
bank_transfer=["ach","bacs","sepa", "multibanco"]
|
||||
wallet = ["apple_pay","google_pay","we_chat_pay","ali_pay", "cashapp"]
|
||||
is_verifiable = true
|
||||
[stripe.connector_auth.HeaderKey]
|
||||
api_key="Secret Key"
|
||||
[stripe.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[stripe.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
stripe_publishable_key="Stripe Publishable Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[stripe.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[stripe.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[zen]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
voucher = ["boleto", "efecty", "pago_efectivo", "red_compra", "red_pagos"]
|
||||
bank_transfer = ["pix", "pse"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
[zen.connector_auth.HeaderKey]
|
||||
api_key="API Key"
|
||||
[zen.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[zen.metadata.apple_pay]
|
||||
terminal_uuid="Terminal UUID"
|
||||
pay_wall_secret="Pay Wall Secret"
|
||||
[zen.metadata.google_pay]
|
||||
terminal_uuid="Terminal UUID"
|
||||
pay_wall_secret="Pay Wall Secret"
|
||||
|
||||
|
||||
[trustpay]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay","sofort","eps","blik"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
[trustpay.connector_auth.SignatureKey]
|
||||
api_key="API Key"
|
||||
key1="Project ID"
|
||||
api_secret="Secret Key"
|
||||
[trustpay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[trustpay.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[trustpay.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[worldline]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_redirect=["ideal","giropay"]
|
||||
[worldline.connector_auth.SignatureKey]
|
||||
api_key="API Key ID"
|
||||
key1="Merchant ID"
|
||||
api_secret="Secret API Key"
|
||||
[worldline.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[worldpay]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay","apple_pay"]
|
||||
[worldpay.connector_auth.BodyKey]
|
||||
api_key="Username"
|
||||
key1="Password"
|
||||
[worldpay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[worldpay.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[worldpay.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[worldpay.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[cashtocode]
|
||||
reward = ["classic", "evoucher"]
|
||||
[cashtocode.connector_auth.CurrencyAuthKey.auth_key_map.EUR]
|
||||
password_classic="Password Classic"
|
||||
username_classic="Username Classic"
|
||||
merchant_id_classic="MerchantId Classic"
|
||||
password_evoucher="Password Evoucher"
|
||||
username_evoucher="Username Evoucher"
|
||||
merchant_id_evoucher="MerchantId Evoucher"
|
||||
[cashtocode.connector_auth.CurrencyAuthKey.auth_key_map.GBP]
|
||||
password_classic="Password Classic"
|
||||
username_classic="Username Classic"
|
||||
merchant_id_classic="MerchantId Classic"
|
||||
password_evoucher="Password Evoucher"
|
||||
username_evoucher="Username Evoucher"
|
||||
merchant_id_evoucher="MerchantId Evoucher"
|
||||
[cashtocode.connector_auth.CurrencyAuthKey.auth_key_map.USD]
|
||||
password_classic="Password Classic"
|
||||
username_classic="Username Classic"
|
||||
merchant_id_classic="MerchantId Classic"
|
||||
password_evoucher="Password Evoucher"
|
||||
username_evoucher="Username Evoucher"
|
||||
merchant_id_evoucher="MerchantId Evoucher"
|
||||
[cashtocode.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[cryptopay]
|
||||
crypto = ["crypto_currency"]
|
||||
[cryptopay.connector_auth.BodyKey]
|
||||
api_key="API Key"
|
||||
key1="Secret Key"
|
||||
[cryptopay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[dummy_connector]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[dummy_connector.connector_auth.HeaderKey]
|
||||
api_key="Api Key"
|
||||
|
||||
[stripe_test]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["google_pay","ali_pay"]
|
||||
pay_later=["klarna","affirm","afterpay_clearpay"]
|
||||
[stripe_test.connector_auth.HeaderKey]
|
||||
api_key="Api Key"
|
||||
|
||||
[paypal_test]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["paypal"]
|
||||
[paypal_test.connector_auth.HeaderKey]
|
||||
api_key="Api Key"
|
||||
|
||||
[payme]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[payme.connector_auth.BodyKey]
|
||||
api_key="Seller Payme Id"
|
||||
key1="Payme Public Key"
|
||||
[payme.connector_webhook_details]
|
||||
merchant_secret="Payme Client Secret"
|
||||
additional_secret="Payme Client Key"
|
||||
|
||||
[powertranz]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[powertranz.connector_auth.BodyKey]
|
||||
key1 = "PowerTranz Id"
|
||||
api_key="PowerTranz Password"
|
||||
[powertranz.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[globepay]
|
||||
wallet = ["we_chat_pay","ali_pay"]
|
||||
[globepay.connector_auth.BodyKey]
|
||||
api_key="Partner Code"
|
||||
key1="Credential Code"
|
||||
[globepay.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[tsys]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[tsys.connector_auth.SignatureKey]
|
||||
api_key="Device Id"
|
||||
key1="Transaction Key"
|
||||
api_secret="Developer Id"
|
||||
[tsys.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[square]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[square_payout.connector_auth.BodyKey]
|
||||
api_key = "Square API Key"
|
||||
key1 = "Square Client Id"
|
||||
[square.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[stax]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
bank_debit=["ach"]
|
||||
[stax.connector_auth.HeaderKey]
|
||||
api_key="Api Key"
|
||||
[stax.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[volt]
|
||||
bank_redirect = ["open_banking_uk"]
|
||||
[volt.connector_auth.MultiAuthKey]
|
||||
api_key = "Username"
|
||||
api_secret = "Password"
|
||||
key1 = "Client ID"
|
||||
key2 = "Client Secret"
|
||||
|
||||
[wise_payout]
|
||||
bank_transfer = ["ach","bacs","sepa"]
|
||||
[wise_payout.connector_auth.BodyKey]
|
||||
api_key = "Wise API Key"
|
||||
key1 = "Wise Account Id"
|
||||
|
||||
[adyen_payout]
|
||||
bank_transfer = ["ach","bacs","sepa"]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
[adyen_payout.connector_auth.SignatureKey]
|
||||
api_key = "Adyen API Key (Payout creation)"
|
||||
api_secret = "Adyen Key (Payout submission)"
|
||||
key1 = "Adyen Account Id"
|
||||
|
||||
[gocardless]
|
||||
bank_debit=["ach","becs","sepa"]
|
||||
[gocardless.connector_auth.HeaderKey]
|
||||
api_key="Access Token"
|
||||
[gocardless.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bankofamerica]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
wallet = ["apple_pay","google_pay"]
|
||||
|
||||
[bankofamerica.connector_auth.SignatureKey]
|
||||
api_key="Key"
|
||||
key1="Merchant ID"
|
||||
api_secret="Shared Secret"
|
||||
[bankofamerica.connector_webhook_details]
|
||||
merchant_secret="Source verification key"
|
||||
|
||||
[bankofamerica.metadata.apple_pay.session_token_data]
|
||||
certificate="Merchant Certificate (Base64 Encoded)"
|
||||
certificate_keys="Merchant PrivateKey (Base64 Encoded)"
|
||||
merchant_identifier="Apple Merchant Identifier"
|
||||
display_name="Display Name"
|
||||
initiative="Domain"
|
||||
initiative_context="Domain Name"
|
||||
[bankofamerica.metadata.apple_pay.payment_request_data]
|
||||
supported_networks=["visa","masterCard","amex","discover"]
|
||||
merchant_capabilities=["supports3DS"]
|
||||
label="apple"
|
||||
|
||||
[bankofamerica.metadata.google_pay]
|
||||
merchant_name="Google Pay Merchant Name"
|
||||
gateway_merchant_id="Google Pay Merchant Key"
|
||||
merchant_id="Google Pay Merchant ID"
|
||||
|
||||
[placetopay]
|
||||
credit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
debit = ["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"]
|
||||
|
||||
[placetopay.connector_auth.BodyKey]
|
||||
api_key="Login"
|
||||
key1="Trankey"
|
||||
@ -14,11 +14,15 @@ default = ["connector_choice_bcompat", "connector_choice_mca_id"]
|
||||
release = ["connector_choice_bcompat", "connector_choice_mca_id"]
|
||||
connector_choice_bcompat = ["api_models/connector_choice_bcompat"]
|
||||
connector_choice_mca_id = ["api_models/connector_choice_mca_id", "euclid/connector_choice_mca_id", "kgraph_utils/connector_choice_mca_id"]
|
||||
dummy_connector = ["kgraph_utils/dummy_connector"]
|
||||
dummy_connector = ["kgraph_utils/dummy_connector", "connector_configs/dummy_connector"]
|
||||
production = ["connector_configs/production"]
|
||||
development = ["connector_configs/development"]
|
||||
sandbox = ["connector_configs/sandbox"]
|
||||
|
||||
[dependencies]
|
||||
api_models = { version = "0.1.0", path = "../api_models", package = "api_models" }
|
||||
currency_conversion = { version = "0.1.0", path = "../currency_conversion" }
|
||||
connector_configs = { version = "0.1.0", path = "../connector_configs" }
|
||||
euclid = { path = "../euclid", features = [] }
|
||||
kgraph_utils = { version = "0.1.0", path = "../kgraph_utils" }
|
||||
common_enums = { version = "0.1.0", path = "../common_enums" }
|
||||
|
||||
@ -7,10 +7,14 @@ use std::{
|
||||
};
|
||||
|
||||
use api_models::{
|
||||
admin as admin_api, conditional_configs::ConditionalConfigs, routing::ConnectorSelection,
|
||||
surcharge_decision_configs::SurchargeDecisionConfigs,
|
||||
admin as admin_api, conditional_configs::ConditionalConfigs, enums as api_model_enums,
|
||||
routing::ConnectorSelection, surcharge_decision_configs::SurchargeDecisionConfigs,
|
||||
};
|
||||
use common_enums::RoutableConnectors;
|
||||
use connector_configs::{
|
||||
common_config::{ConnectorApiIntegrationPayload, DashboardRequestPayload},
|
||||
connector,
|
||||
};
|
||||
use currency_conversion::{
|
||||
conversion::convert as convert_currency, types as currency_conversion_types,
|
||||
};
|
||||
@ -291,3 +295,35 @@ pub fn get_description_category() -> JsResult {
|
||||
|
||||
Ok(serde_wasm_bindgen::to_value(&category)?)
|
||||
}
|
||||
|
||||
#[wasm_bindgen(js_name = getConnectorConfig)]
|
||||
pub fn get_connector_config(key: &str) -> JsResult {
|
||||
let key = api_model_enums::Connector::from_str(key)
|
||||
.map_err(|_| "Invalid key received".to_string())?;
|
||||
let res = connector::ConnectorConfig::get_connector_config(key)?;
|
||||
Ok(serde_wasm_bindgen::to_value(&res)?)
|
||||
}
|
||||
|
||||
#[cfg(feature = "payouts")]
|
||||
#[wasm_bindgen(js_name = getPayoutConnectorConfig)]
|
||||
pub fn get_payout_connector_config(key: &str) -> JsResult {
|
||||
let key = api_model_enums::PayoutConnectors::from_str(key)
|
||||
.map_err(|_| "Invalid key received".to_string())?;
|
||||
let res = connector::ConnectorConfig::get_payout_connector_config(key)?;
|
||||
Ok(serde_wasm_bindgen::to_value(&res)?)
|
||||
}
|
||||
|
||||
#[wasm_bindgen(js_name = getRequestPayload)]
|
||||
pub fn get_request_payload(input: JsValue, response: JsValue) -> JsResult {
|
||||
let input: DashboardRequestPayload = serde_wasm_bindgen::from_value(input)?;
|
||||
let api_response: ConnectorApiIntegrationPayload = serde_wasm_bindgen::from_value(response)?;
|
||||
let result = DashboardRequestPayload::create_connector_request(input, api_response);
|
||||
Ok(serde_wasm_bindgen::to_value(&result)?)
|
||||
}
|
||||
|
||||
#[wasm_bindgen(js_name = getResponsePayload)]
|
||||
pub fn get_response_payload(input: JsValue) -> JsResult {
|
||||
let input: ConnectorApiIntegrationPayload = serde_wasm_bindgen::from_value(input)?;
|
||||
let result = ConnectorApiIntegrationPayload::get_transformed_response_payload(input);
|
||||
Ok(serde_wasm_bindgen::to_value(&result)?)
|
||||
}
|
||||
|
||||
25
docker/wasm-build.Dockerfile
Normal file
25
docker/wasm-build.Dockerfile
Normal file
@ -0,0 +1,25 @@
|
||||
FROM rust:latest as builder
|
||||
|
||||
ARG RUN_ENV=sandbox
|
||||
ARG EXTRA_FEATURES=""
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y libssl-dev pkg-config
|
||||
|
||||
ENV CARGO_INCREMENTAL=0
|
||||
# Allow more retries for network requests in cargo (downloading crates) and
|
||||
# rustup (installing toolchains). This should help to reduce flaky CI failures
|
||||
# from transient network timeouts or other issues.
|
||||
ENV CARGO_NET_RETRY=10
|
||||
ENV RUSTUP_MAX_RETRIES=10
|
||||
# Don't emit giant backtraces in the CI logs.
|
||||
ENV RUST_BACKTRACE="short"
|
||||
ENV env=$env
|
||||
COPY . .
|
||||
RUN echo env
|
||||
RUN cargo install wasm-pack
|
||||
RUN wasm-pack build --target web --out-dir /tmp/wasm --out-name euclid crates/euclid_wasm -- --features ${RUN_ENV},${EXTRA_FEATURES}
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=builder /tmp/wasm /tmp
|
||||
Reference in New Issue
Block a user