Skip to content

Commit 7e6207e

Browse files
feat(connector): [ProphetPay] Template generation (#2610)
Co-authored-by: Arjun Karthik <[email protected]>
1 parent 6494e8a commit 7e6207e

File tree

16 files changed

+1226
-6
lines changed

16 files changed

+1226
-6
lines changed

config/config.example.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ payme.base_url = "https://sandbox.payme.io/"
200200
paypal.base_url = "https://api-m.sandbox.paypal.com/"
201201
payu.base_url = "https://secure.snd.payu.com/"
202202
powertranz.base_url = "https://staging.ptranz.com/api/"
203+
prophetpay.base_url = "https://ccm-thirdparty.cps.golf/"
203204
rapyd.base_url = "https://sandboxapi.rapyd.net"
204205
shift4.base_url = "https://api.shift4.com/"
205206
square.base_url = "https://connect.squareupsandbox.com/"

config/development.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ cards = [
102102
"paypal",
103103
"payu",
104104
"powertranz",
105+
"prophetpay",
105106
"shift4",
106107
"square",
107108
"stax",
@@ -172,6 +173,7 @@ payme.base_url = "https://sandbox.payme.io/"
172173
paypal.base_url = "https://api-m.sandbox.paypal.com/"
173174
payu.base_url = "https://secure.snd.payu.com/"
174175
powertranz.base_url = "https://staging.ptranz.com/api/"
176+
prophetpay.base_url = "https://ccm-thirdparty.cps.golf/"
175177
rapyd.base_url = "https://sandboxapi.rapyd.net"
176178
shift4.base_url = "https://api.shift4.com/"
177179
square.base_url = "https://connect.squareupsandbox.com/"

config/docker_compose.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ payme.base_url = "https://sandbox.payme.io/"
115115
paypal.base_url = "https://api-m.sandbox.paypal.com/"
116116
payu.base_url = "https://secure.snd.payu.com/"
117117
powertranz.base_url = "https://staging.ptranz.com/api/"
118+
prophetpay.base_url = "https://ccm-thirdparty.cps.golf/"
118119
rapyd.base_url = "https://sandboxapi.rapyd.net"
119120
shift4.base_url = "https://api.shift4.com/"
120121
square.base_url = "https://connect.squareupsandbox.com/"
@@ -175,6 +176,7 @@ cards = [
175176
"paypal",
176177
"payu",
177178
"powertranz",
179+
"prophetpay",
178180
"shift4",
179181
"square",
180182
"stax",

crates/api_models/src/enums.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ pub enum Connector {
107107
Paypal,
108108
Payu,
109109
Powertranz,
110+
// Prophetpay, added as a template code for future usage
110111
Rapyd,
111112
Shift4,
112113
Square,
@@ -225,6 +226,7 @@ pub enum RoutableConnectors {
225226
Paypal,
226227
Payu,
227228
Powertranz,
229+
// Prophetpay, added as a template code for future usage
228230
Rapyd,
229231
Shift4,
230232
Square,

crates/router/src/configs/settings.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ pub struct Connectors {
559559
pub paypal: ConnectorParams,
560560
pub payu: ConnectorParams,
561561
pub powertranz: ConnectorParams,
562+
pub prophetpay: ConnectorParams,
562563
pub rapyd: ConnectorParams,
563564
pub shift4: ConnectorParams,
564565
pub square: ConnectorParams,

crates/router/src/connector.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pub mod payme;
3636
pub mod paypal;
3737
pub mod payu;
3838
pub mod powertranz;
39+
pub mod prophetpay;
3940
pub mod rapyd;
4041
pub mod shift4;
4142
pub mod square;
@@ -60,7 +61,7 @@ pub use self::{
6061
globepay::Globepay, gocardless::Gocardless, helcim::Helcim, iatapay::Iatapay, klarna::Klarna,
6162
mollie::Mollie, multisafepay::Multisafepay, nexinets::Nexinets, nmi::Nmi, noon::Noon,
6263
nuvei::Nuvei, opayo::Opayo, opennode::Opennode, payeezy::Payeezy, payme::Payme, paypal::Paypal,
63-
payu::Payu, powertranz::Powertranz, rapyd::Rapyd, shift4::Shift4, square::Square, stax::Stax,
64-
stripe::Stripe, trustpay::Trustpay, tsys::Tsys, volt::Volt, wise::Wise, worldline::Worldline,
65-
worldpay::Worldpay, zen::Zen,
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,
6667
};

0 commit comments

Comments
 (0)