Skip to content

Commit 38aa490

Browse files
Anurag-05-progAnurag SinghAnurag Singhhyperswitch-bot[bot]deepanshu-iiitu
authored andcommitted
feat(connector): add barclaycard template code (#8017)
Co-authored-by: Anurag Singh <[email protected]> Co-authored-by: Anurag Singh <[email protected]> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: DEEPANSHU BANSAL <[email protected]>
1 parent 3fbb49d commit 38aa490

File tree

24 files changed

+1348
-24
lines changed

24 files changed

+1348
-24
lines changed

config/config.example.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api"
188188
bambora.base_url = "https://api.na.bambora.com"
189189
bamboraapac.base_url = "https://demo.ippayments.com.au/interface/api"
190190
bankofamerica.base_url = "https://apitest.merchant-services.bankofamerica.com/"
191+
barclaycard.base_url = "https://api.smartpayfuse-test.barclaycard/pts/v2/"
191192
billwerk.base_url = "https://api.reepay.com/"
192193
billwerk.secondary_base_url = "https://card.reepay.com/"
193194
bitpay.base_url = "https://test.bitpay.com"

config/deployments/integration_test.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api"
3232
bambora.base_url = "https://api.na.bambora.com"
3333
bamboraapac.base_url = "https://demo.ippayments.com.au/interface/api"
3434
bankofamerica.base_url = "https://apitest.merchant-services.bankofamerica.com/"
35+
barclaycard.base_url = "https://api.smartpayfuse-test.barclaycard/pts/v2/"
3536
billwerk.base_url = "https://api.reepay.com/"
3637
billwerk.secondary_base_url = "https://card.reepay.com/"
3738
bitpay.base_url = "https://test.bitpay.com"

config/deployments/production.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ authorizedotnet.base_url = "https://api.authorize.net/xml/v1/request.api"
3636
bambora.base_url = "https://api.na.bambora.com"
3737
bamboraapac.base_url = "https://www.bambora.co.nz/interface/api/dts.asmx"
3838
bankofamerica.base_url = "https://api.merchant-services.bankofamerica.com/"
39+
barclaycard.base_url = "https://api.smartpayfuse-test.barclaycard/pts/v2/"
3940
billwerk.base_url = "https://api.reepay.com/"
4041
billwerk.secondary_base_url = "https://card.reepay.com/"
4142
bitpay.base_url = "https://bitpay.com"

config/deployments/sandbox.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api"
3636
bambora.base_url = "https://api.na.bambora.com"
3737
bamboraapac.base_url = "https://demo.ippayments.com.au/interface/api"
3838
bankofamerica.base_url = "https://apitest.merchant-services.bankofamerica.com/"
39+
barclaycard.base_url = "https://api.smartpayfuse-test.barclaycard/pts/v2/"
3940
billwerk.base_url = "https://api.reepay.com/"
4041
billwerk.secondary_base_url = "https://card.reepay.com/"
4142
bitpay.base_url = "https://test.bitpay.com"

config/development.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ cards = [
123123
"bambora",
124124
"bamboraapac",
125125
"bankofamerica",
126+
"barclaycard",
126127
"billwerk",
127128
"bitpay",
128129
"bluesnap",
@@ -237,6 +238,7 @@ authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api"
237238
bambora.base_url = "https://api.na.bambora.com"
238239
bamboraapac.base_url = "https://demo.ippayments.com.au/interface/api"
239240
bankofamerica.base_url = "https://apitest.merchant-services.bankofamerica.com/"
241+
barclaycard.base_url = "https://api.smartpayfuse-test.barclaycard/pts/v2/"
240242
billwerk.base_url = "https://api.reepay.com/"
241243
billwerk.secondary_base_url = "https://card.reepay.com/"
242244
bitpay.base_url = "https://test.bitpay.com"

config/docker_compose.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api"
119119
bambora.base_url = "https://api.na.bambora.com"
120120
bamboraapac.base_url = "https://demo.ippayments.com.au/interface/api"
121121
bankofamerica.base_url = "https://apitest.merchant-services.bankofamerica.com/"
122+
barclaycard.base_url = "https://api.smartpayfuse-test.barclaycard/pts/v2/"
122123
billwerk.base_url = "https://api.reepay.com/"
123124
billwerk.secondary_base_url = "https://card.reepay.com/"
124125
bitpay.base_url = "https://test.bitpay.com"
@@ -243,6 +244,7 @@ cards = [
243244
"bambora",
244245
"bamboraapac",
245246
"bankofamerica",
247+
"barclaycard",
246248
"billwerk",
247249
"bitpay",
248250
"bluesnap",

crates/common_enums/src/connector_enums.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ pub enum RoutableConnectors {
6565
Archipel,
6666
Authorizedotnet,
6767
Bankofamerica,
68+
// Barclaycard,
6869
Billwerk,
6970
Bitpay,
7071
Bambora,
@@ -217,6 +218,7 @@ pub enum Connector {
217218
Bambora,
218219
Bamboraapac,
219220
Bankofamerica,
221+
// Barclaycard,
220222
Billwerk,
221223
Bitpay,
222224
Bluesnap,
@@ -389,6 +391,7 @@ impl Connector {
389391
| Self::Bambora
390392
| Self::Bamboraapac
391393
| Self::Bankofamerica
394+
// | Self::Barclaycard
392395
| Self::Billwerk
393396
| Self::Bitpay
394397
| Self::Bluesnap
@@ -540,6 +543,7 @@ impl From<RoutableConnectors> for Connector {
540543
RoutableConnectors::Archipel => Self::Archipel,
541544
RoutableConnectors::Authorizedotnet => Self::Authorizedotnet,
542545
RoutableConnectors::Bankofamerica => Self::Bankofamerica,
546+
// RoutableConnectors::Barclaycard => Self::Barclaycard,
543547
RoutableConnectors::Billwerk => Self::Billwerk,
544548
RoutableConnectors::Bitpay => Self::Bitpay,
545549
RoutableConnectors::Bambora => Self::Bambora,
@@ -653,6 +657,7 @@ impl TryFrom<Connector> for RoutableConnectors {
653657
Connector::Archipel => Ok(Self::Archipel),
654658
Connector::Authorizedotnet => Ok(Self::Authorizedotnet),
655659
Connector::Bankofamerica => Ok(Self::Bankofamerica),
660+
// Connector::Barclaycard => Ok(Self::Barclaycard),
656661
Connector::Billwerk => Ok(Self::Billwerk),
657662
Connector::Bitpay => Ok(Self::Bitpay),
658663
Connector::Bambora => Ok(Self::Bambora),

crates/connector_configs/src/connector.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ pub struct ConnectorConfig {
174174
pub authorizedotnet: Option<ConnectorTomlConfig>,
175175
pub bamboraapac: Option<ConnectorTomlConfig>,
176176
pub bankofamerica: Option<ConnectorTomlConfig>,
177+
pub barclaycard: Option<ConnectorTomlConfig>,
177178
pub billwerk: Option<ConnectorTomlConfig>,
178179
pub bitpay: Option<ConnectorTomlConfig>,
179180
pub bluesnap: Option<ConnectorTomlConfig>,

crates/hyperswitch_connectors/src/connectors.rs

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub mod authorizedotnet;
88
pub mod bambora;
99
pub mod bamboraapac;
1010
pub mod bankofamerica;
11+
pub mod barclaycard;
1112
pub mod billwerk;
1213
pub mod bitpay;
1314
pub mod bluesnap;
@@ -101,21 +102,22 @@ pub mod zsl;
101102
pub use self::{
102103
aci::Aci, adyen::Adyen, adyenplatform::Adyenplatform, airwallex::Airwallex,
103104
amazonpay::Amazonpay, archipel::Archipel, authorizedotnet::Authorizedotnet, bambora::Bambora,
104-
bamboraapac::Bamboraapac, bankofamerica::Bankofamerica, billwerk::Billwerk, bitpay::Bitpay,
105-
bluesnap::Bluesnap, boku::Boku, braintree::Braintree, cashtocode::Cashtocode,
106-
chargebee::Chargebee, checkout::Checkout, coinbase::Coinbase, coingate::Coingate,
107-
cryptopay::Cryptopay, ctp_mastercard::CtpMastercard, cybersource::Cybersource,
108-
datatrans::Datatrans, deutschebank::Deutschebank, digitalvirgo::Digitalvirgo, dlocal::Dlocal,
109-
ebanx::Ebanx, elavon::Elavon, facilitapay::Facilitapay, fiserv::Fiserv, fiservemea::Fiservemea,
110-
fiuu::Fiuu, forte::Forte, getnet::Getnet, globalpay::Globalpay, globepay::Globepay,
111-
gocardless::Gocardless, gpayments::Gpayments, helcim::Helcim, hipay::Hipay, iatapay::Iatapay,
112-
inespay::Inespay, itaubank::Itaubank, jpmorgan::Jpmorgan,
113-
juspaythreedsserver::Juspaythreedsserver, klarna::Klarna, mifinity::Mifinity, mollie::Mollie,
114-
moneris::Moneris, multisafepay::Multisafepay, netcetera::Netcetera, nexinets::Nexinets,
115-
nexixpay::Nexixpay, nmi::Nmi, nomupay::Nomupay, noon::Noon, novalnet::Novalnet, nuvei::Nuvei,
116-
opayo::Opayo, opennode::Opennode, paybox::Paybox, payeezy::Payeezy, payme::Payme,
117-
payone::Payone, paypal::Paypal, paystack::Paystack, payu::Payu, placetopay::Placetopay,
118-
plaid::Plaid, powertranz::Powertranz, prophetpay::Prophetpay, rapyd::Rapyd, razorpay::Razorpay,
105+
bamboraapac::Bamboraapac, bankofamerica::Bankofamerica, barclaycard::Barclaycard,
106+
billwerk::Billwerk, bitpay::Bitpay, bluesnap::Bluesnap, boku::Boku, braintree::Braintree,
107+
cashtocode::Cashtocode, chargebee::Chargebee, checkout::Checkout, coinbase::Coinbase,
108+
coingate::Coingate, cryptopay::Cryptopay, ctp_mastercard::CtpMastercard,
109+
cybersource::Cybersource, datatrans::Datatrans, deutschebank::Deutschebank,
110+
digitalvirgo::Digitalvirgo, dlocal::Dlocal, ebanx::Ebanx, elavon::Elavon,
111+
facilitapay::Facilitapay, fiserv::Fiserv, fiservemea::Fiservemea, fiuu::Fiuu, forte::Forte,
112+
getnet::Getnet, globalpay::Globalpay, globepay::Globepay, gocardless::Gocardless,
113+
gpayments::Gpayments, helcim::Helcim, hipay::Hipay, iatapay::Iatapay, inespay::Inespay,
114+
itaubank::Itaubank, jpmorgan::Jpmorgan, juspaythreedsserver::Juspaythreedsserver,
115+
klarna::Klarna, mifinity::Mifinity, mollie::Mollie, moneris::Moneris,
116+
multisafepay::Multisafepay, netcetera::Netcetera, nexinets::Nexinets, nexixpay::Nexixpay,
117+
nmi::Nmi, nomupay::Nomupay, noon::Noon, novalnet::Novalnet, nuvei::Nuvei, opayo::Opayo,
118+
opennode::Opennode, paybox::Paybox, payeezy::Payeezy, payme::Payme, payone::Payone,
119+
paypal::Paypal, paystack::Paystack, payu::Payu, placetopay::Placetopay, plaid::Plaid,
120+
powertranz::Powertranz, prophetpay::Prophetpay, rapyd::Rapyd, razorpay::Razorpay,
119121
recurly::Recurly, redsys::Redsys, riskified::Riskified, shift4::Shift4, signifyd::Signifyd,
120122
square::Square, stax::Stax, stripe::Stripe, stripebilling::Stripebilling, taxjar::Taxjar,
121123
threedsecureio::Threedsecureio, thunes::Thunes, trustpay::Trustpay, tsys::Tsys,

0 commit comments

Comments
 (0)