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

feat:H105-L2 : Auth Capture and Void for Bambora #3

Open
wants to merge 7 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", "bambora"]

[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.bambora]
base_url = "https://api.na.bambora.com/"

[scheduler]
stream = "SCHEDULER_STREAM"

Expand Down
4 changes: 4 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.bambora]
base_url = "https://api.na.bambora.com/"

[connectors.supported]
wallets = ["klarna", "braintree", "applepay"]
cards = [
Expand All @@ -164,6 +167,7 @@ cards = [
"shift4",
"worldpay",
"globalpay",
"bambora"
]

# Scheduler settings provides a point to modify the behaviour of scheduler flow.
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.bambora]
base_url = "https://api.na.bambora.com/"

[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", "bambora"]


[scheduler]
Expand Down
2 changes: 2 additions & 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,
Bambora,
Fiserv,
Globalpay,
Klarna,
Expand Down Expand Up @@ -566,6 +567,7 @@ pub enum RoutableConnectors {
Stripe,
Worldline,
Worldpay,
Bambora,
}

/// Wallets which support obtaining session object
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 bambora: 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 bambora;

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,
bambora::Bambora,
};
Loading