Skip to content

Commit 4563935

Browse files
deepanshu-iiitugithub-actions[bot]preetamrevankar
authored
feat(connector): [BANKOFAMERICA] Add Connector Template Code (#2764)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: preetamrevankar <[email protected]>
1 parent ff73aba commit 4563935

File tree

18 files changed

+1262
-13
lines changed

18 files changed

+1262
-13
lines changed

config/config.example.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ airwallex.base_url = "https://api-demo.airwallex.com/"
163163
applepay.base_url = "https://apple-pay-gateway.apple.com/"
164164
authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api"
165165
bambora.base_url = "https://api.na.bambora.com"
166+
bankofamerica.base_url = "https://apitest.merchant-services.bankofamerica.com/"
166167
bitpay.base_url = "https://test.bitpay.com"
167168
bluesnap.base_url = "https://sandbox.bluesnap.com/"
168169
bluesnap.secondary_base_url = "https://sandpay.bluesnap.com/"

config/development.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ cards = [
7171
"airwallex",
7272
"authorizedotnet",
7373
"bambora",
74+
"bankofamerica",
7475
"bitpay",
7576
"bluesnap",
7677
"boku",
@@ -136,6 +137,7 @@ airwallex.base_url = "https://api-demo.airwallex.com/"
136137
applepay.base_url = "https://apple-pay-gateway.apple.com/"
137138
authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api"
138139
bambora.base_url = "https://api.na.bambora.com"
140+
bankofamerica.base_url = "https://apitest.merchant-services.bankofamerica.com/"
139141
bitpay.base_url = "https://test.bitpay.com"
140142
bluesnap.base_url = "https://sandbox.bluesnap.com/"
141143
bluesnap.secondary_base_url = "https://sandpay.bluesnap.com/"

config/docker_compose.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ airwallex.base_url = "https://api-demo.airwallex.com/"
7878
applepay.base_url = "https://apple-pay-gateway.apple.com/"
7979
authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api"
8080
bambora.base_url = "https://api.na.bambora.com"
81+
bankofamerica.base_url = "https://apitest.merchant-services.bankofamerica.com/"
8182
bitpay.base_url = "https://test.bitpay.com"
8283
bluesnap.base_url = "https://sandbox.bluesnap.com/"
8384
bluesnap.secondary_base_url = "https://sandpay.bluesnap.com/"
@@ -145,6 +146,7 @@ cards = [
145146
"airwallex",
146147
"authorizedotnet",
147148
"bambora",
149+
"bankofamerica",
148150
"bitpay",
149151
"bluesnap",
150152
"boku",

crates/api_models/src/enums.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ pub enum Connector {
7575
Adyen,
7676
Airwallex,
7777
Authorizedotnet,
78-
Bitpay,
7978
Bambora,
79+
// Bankofamerica, Added as template code for future usage
80+
Bitpay,
8081
Bluesnap,
8182
Boku,
8283
Braintree,
@@ -195,6 +196,7 @@ pub enum RoutableConnectors {
195196
Adyen,
196197
Airwallex,
197198
Authorizedotnet,
199+
// Bankofamerica, Added as template code for future usage
198200
Bitpay,
199201
Bambora,
200202
Bluesnap,

crates/router/src/configs/settings.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ pub struct Connectors {
531531
pub applepay: ConnectorParams,
532532
pub authorizedotnet: ConnectorParams,
533533
pub bambora: ConnectorParams,
534+
pub bankofamerica: ConnectorParams,
534535
pub bitpay: ConnectorParams,
535536
pub bluesnap: ConnectorParamsWithSecondaryBaseUrl,
536537
pub boku: ConnectorParams,

crates/router/src/connector.rs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ pub mod adyen;
33
pub mod airwallex;
44
pub mod authorizedotnet;
55
pub mod bambora;
6+
pub mod bankofamerica;
67
pub mod bitpay;
78
pub mod bluesnap;
89
pub mod boku;
@@ -55,13 +56,14 @@ pub mod zen;
5556
pub use self::dummyconnector::DummyConnector;
5657
pub use self::{
5758
aci::Aci, adyen::Adyen, airwallex::Airwallex, authorizedotnet::Authorizedotnet,
58-
bambora::Bambora, bitpay::Bitpay, bluesnap::Bluesnap, boku::Boku, braintree::Braintree,
59-
cashtocode::Cashtocode, checkout::Checkout, coinbase::Coinbase, cryptopay::Cryptopay,
60-
cybersource::Cybersource, dlocal::Dlocal, fiserv::Fiserv, forte::Forte, globalpay::Globalpay,
61-
globepay::Globepay, gocardless::Gocardless, helcim::Helcim, iatapay::Iatapay, klarna::Klarna,
62-
mollie::Mollie, multisafepay::Multisafepay, nexinets::Nexinets, nmi::Nmi, noon::Noon,
63-
nuvei::Nuvei, opayo::Opayo, opennode::Opennode, payeezy::Payeezy, payme::Payme, paypal::Paypal,
64-
payu::Payu, powertranz::Powertranz, prophetpay::Prophetpay, rapyd::Rapyd, shift4::Shift4,
65-
square::Square, stax::Stax, stripe::Stripe, trustpay::Trustpay, tsys::Tsys, volt::Volt,
66-
wise::Wise, worldline::Worldline, worldpay::Worldpay, zen::Zen,
59+
bambora::Bambora, bankofamerica::Bankofamerica, bitpay::Bitpay, bluesnap::Bluesnap, boku::Boku,
60+
braintree::Braintree, cashtocode::Cashtocode, checkout::Checkout, coinbase::Coinbase,
61+
cryptopay::Cryptopay, cybersource::Cybersource, dlocal::Dlocal, fiserv::Fiserv, forte::Forte,
62+
globalpay::Globalpay, globepay::Globepay, gocardless::Gocardless, helcim::Helcim,
63+
iatapay::Iatapay, klarna::Klarna, mollie::Mollie, multisafepay::Multisafepay,
64+
nexinets::Nexinets, nmi::Nmi, noon::Noon, nuvei::Nuvei, opayo::Opayo, opennode::Opennode,
65+
payeezy::Payeezy, payme::Payme, paypal::Paypal, payu::Payu, powertranz::Powertranz,
66+
prophetpay::Prophetpay, rapyd::Rapyd, shift4::Shift4, square::Square, stax::Stax,
67+
stripe::Stripe, trustpay::Trustpay, tsys::Tsys, volt::Volt, wise::Wise, worldline::Worldline,
68+
worldpay::Worldpay, zen::Zen,
6769
};

0 commit comments

Comments
 (0)