Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hackathon h1016 l2 #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion config/Development.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ locker_decryption_key2 = ""

[connectors.supported]
wallets = ["klarna","braintree","applepay"]
cards = ["stripe","adyen","authorizedotnet","checkout","braintree","aci","shift4","cybersource", "worldpay", "globalpay", "fiserv", "payu", "worldline"]
cards = ["stripe","adyen","authorizedotnet","checkout","braintree","aci","shift4","cybersource", "worldpay", "globalpay", "fiserv", "payu", "worldline", "forte"]

[refund]
max_attempts = 10
Expand Down Expand Up @@ -103,6 +103,9 @@ base_url = "https://apis.sandbox.globalpay.com/ucp/"
[connectors.worldline]
base_url = "https://eu.sandbox.api-ingenico.com/"

[connectors.forte]
base_url = "https://sandbox.forte.net/api/v3/organizations/org_436911/locations/loc_314200/transactions"

[scheduler]
stream = "SCHEDULER_STREAM"

Expand Down
3 changes: 3 additions & 0 deletions config/config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ base_url = "https://try.access.worldpay.com/"
base_url = "https://apis.sandbox.globalpay.com/ucp/"

# This data is used to call respective connectors for wallets and cards
[connectors.forte]
base_url = "https://sandbox.forte.net/api/v3/organizations/org_436911/locations/loc_314200/transactions"

[connectors.supported]
wallets = ["klarna", "braintree", "applepay"]
cards = [
Expand Down
5 changes: 4 additions & 1 deletion config/docker_compose.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,12 @@ base_url = "https://try.access.worldpay.com/"
[connectors.globalpay]
base_url = "https://apis.sandbox.globalpay.com/ucp/"

[connectors.forte]
base_url = "https://sandbox.forte.net/api/v3/organizations/org_436911/locations/loc_314200/transactions"

[connectors.supported]
wallets = ["klarna", "braintree", "applepay"]
cards = ["stripe", "adyen", "authorizedotnet", "checkout", "braintree", "shift4", "cybersource", "worldpay", "globalpay", "fiserv"]
cards = ["stripe", "adyen", "authorizedotnet", "checkout", "braintree", "shift4", "cybersource", "worldpay", "globalpay", "fiserv", "forte"]


[scheduler]
Expand Down
1 change: 1 addition & 0 deletions crates/api_models/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ pub enum Connector {
Cybersource,
#[default]
Dummy,
Forte,
Fiserv,
Globalpay,
Klarna,
Expand Down
1 change: 1 addition & 0 deletions crates/router/src/configs/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ pub struct Connectors {

// Keep this field separate from the remaining fields
pub supported: SupportedConnectors,
pub forte: ConnectorParams,
}

#[derive(Debug, Deserialize, Clone, Default)]
Expand Down
3 changes: 3 additions & 0 deletions crates/router/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ pub mod utils;
pub mod worldline;
pub mod worldpay;

pub mod forte;

pub use self::{
aci::Aci, adyen::Adyen, applepay::Applepay, authorizedotnet::Authorizedotnet,
braintree::Braintree, checkout::Checkout, cybersource::Cybersource, fiserv::Fiserv,
globalpay::Globalpay, klarna::Klarna, payu::Payu, rapyd::Rapyd, shift4::Shift4, stripe::Stripe,
worldline::Worldline, worldpay::Worldpay,
forte::Forte,
};
Loading