Skip to content
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a3e2b79
refactor(masking): move masking implementations to masking crate
Chethan-rao Sep 12, 2023
a621192
Merge branch 'main' of github.com:juspay/hyperswitch
Chethan-rao Sep 13, 2023
b1bc6c7
t Merge branch 'main' of github.com:juspay/hyperswitch
Chethan-rao Sep 14, 2023
9623ec8
Merge branch 'main' of github.com:juspay/hyperswitch
Chethan-rao Sep 15, 2023
0333593
Merge branch 'main' of github.com:juspay/hyperswitch
Chethan-rao Sep 20, 2023
587549f
Merge branch 'main' of github.com:juspay/hyperswitch
Chethan-rao Sep 24, 2023
57b3aad
Merge branch 'main' of github.com:juspay/hyperswitch
Chethan-rao Sep 25, 2023
687a4f2
Merge branch 'main' of github.com:juspay/hyperswitch
Chethan-rao Sep 25, 2023
9e8ce1f
Merge branch 'main' of github.com:juspay/hyperswitch
Chethan-rao Sep 26, 2023
06132d5
Merge branch 'main' of github.com:juspay/hyperswitch
Chethan-rao Sep 27, 2023
7d21ffe
Merge branch 'main' of github.com:juspay/hyperswitch into add_ctx_gen…
Chethan-rao Sep 27, 2023
3d692f4
refactor: add ctx generic to payments operation core
Chethan-rao Sep 27, 2023
fea5d78
refactor: add ctx generic to make_pm_data function
Chethan-rao Sep 28, 2023
b7562d1
refactor: add common trait and impl for OSS
Chethan-rao Oct 3, 2023
6ae6f5a
Merge branch 'main' of github.com:juspay/hyperswitch into add_ctx_gen…
Chethan-rao Oct 3, 2023
763fef4
fix: clippy lints
Chethan-rao Oct 3, 2023
ed6fd5a
Merge branch 'main' of github.com:juspay/hyperswitch into add_ctx_gen…
Chethan-rao Oct 3, 2023
5357b83
Merge branch 'main' into add_ctx_generic
Chethan-rao Oct 4, 2023
0c0e6c3
Merge branch 'main' of github.com:juspay/hyperswitch into add_ctx_gen…
Chethan-rao Oct 4, 2023
06a4eff
refactor: address requested changes
Chethan-rao Oct 4, 2023
704fa8b
Merge branch 'add_ctx_generic' of github.com:juspay/hyperswitch into …
Chethan-rao Oct 4, 2023
be4a3d6
Merge branch 'main' into add_ctx_generic
Chethan-rao Oct 4, 2023
d2cfc61
Merge branch 'main' into add_ctx_generic
Chethan-rao Oct 4, 2023
058bfa3
Merge branch 'main' of github.com:juspay/hyperswitch into add_ctx_gen…
Chethan-rao Oct 5, 2023
50d05e4
refactor: address requested changes
Chethan-rao Oct 5, 2023
6f7c496
Merge branch 'add_ctx_generic' of github.com:juspay/hyperswitch into …
Chethan-rao Oct 5, 2023
113cb9e
Merge branch 'main' into add_ctx_generic
Chethan-rao Oct 5, 2023
f581af9
refactor: move trait implementation to core
Chethan-rao Oct 5, 2023
e74ab22
Merge branch 'main' of github.com:juspay/hyperswitch into add_ctx_gen…
Chethan-rao Oct 5, 2023
a94845b
Merge branch 'add_ctx_generic' of github.com:juspay/hyperswitch into …
Chethan-rao Oct 5, 2023
194adec
Merge branch 'main' of github.com:juspay/hyperswitch into add_ctx_gen…
Chethan-rao Oct 5, 2023
b06d19b
Merge branch 'main' into add_ctx_generic
Chethan-rao Oct 5, 2023
19ad0ca
Merge branch 'main' into add_ctx_generic
Chethan-rao Oct 6, 2023
dd98b39
Merge branch 'main' into add_ctx_generic
Chethan-rao Oct 6, 2023
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
19 changes: 11 additions & 8 deletions crates/router/src/compatibility/stripe/payment_intents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ use crate::{
core::{api_locking::GetLockingInput, payments},
routes,
services::{api, authentication as auth},
types::api::{self as api_types},
types::{
api::{self as api_types},
handler::Oss,
},
};

#[instrument(skip_all, fields(flow = ?Flow::PaymentsCreate))]
Expand Down Expand Up @@ -50,7 +53,7 @@ pub async fn payment_intents_create(
&req,
create_payment_req,
|state, auth, req| {
payments::payments_core::<api_types::Authorize, api_types::PaymentsResponse, _, _, _>(
payments::payments_core::<api_types::Authorize, api_types::PaymentsResponse, _, _, _,Oss>(
state,
auth.merchant_account,
auth.key_store,
Expand Down Expand Up @@ -109,7 +112,7 @@ pub async fn payment_intents_retrieve(
&req,
payload,
|state, auth, payload| {
payments::payments_core::<api_types::PSync, api_types::PaymentsResponse, _, _, _>(
payments::payments_core::<api_types::PSync, api_types::PaymentsResponse, _, _, _, Oss>(
state,
auth.merchant_account,
auth.key_store,
Expand Down Expand Up @@ -172,7 +175,7 @@ pub async fn payment_intents_retrieve_with_gateway_creds(
&req,
payload,
|state, auth, req| {
payments::payments_core::<api_types::PSync, payment_types::PaymentsResponse, _, _, _>(
payments::payments_core::<api_types::PSync, payment_types::PaymentsResponse, _, _, _,Oss>(
state,
auth.merchant_account,
auth.key_store,
Expand Down Expand Up @@ -236,7 +239,7 @@ pub async fn payment_intents_update(
&req,
payload,
|state, auth, req| {
payments::payments_core::<api_types::Authorize, api_types::PaymentsResponse, _, _, _>(
payments::payments_core::<api_types::Authorize, api_types::PaymentsResponse, _, _, _,Oss>(
state,
auth.merchant_account,
auth.key_store,
Expand Down Expand Up @@ -302,7 +305,7 @@ pub async fn payment_intents_confirm(
&req,
payload,
|state, auth, req| {
payments::payments_core::<api_types::Authorize, api_types::PaymentsResponse, _, _, _>(
payments::payments_core::<api_types::Authorize, api_types::PaymentsResponse, _, _, _,Oss>(
state,
auth.merchant_account,
auth.key_store,
Expand Down Expand Up @@ -358,7 +361,7 @@ pub async fn payment_intents_capture(
&req,
payload,
|state, auth, payload| {
payments::payments_core::<api_types::Capture, api_types::PaymentsResponse, _, _, _>(
payments::payments_core::<api_types::Capture, api_types::PaymentsResponse, _, _, _,Oss>(
state,
auth.merchant_account,
auth.key_store,
Expand Down Expand Up @@ -418,7 +421,7 @@ pub async fn payment_intents_cancel(
&req,
payload,
|state, auth, req| {
payments::payments_core::<api_types::Void, api_types::PaymentsResponse, _, _, _>(
payments::payments_core::<api_types::Void, api_types::PaymentsResponse, _, _, _, Oss>(
state,
auth.merchant_account,
auth.key_store,
Expand Down
10 changes: 5 additions & 5 deletions crates/router/src/compatibility/stripe/setup_intents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::{
core::{api_locking, payments},
routes,
services::{api, authentication as auth},
types::api as api_types,
types::{api as api_types, handler::Oss},
};

#[instrument(skip_all, fields(flow = ?Flow::PaymentsCreate))]
Expand Down Expand Up @@ -54,7 +54,7 @@ pub async fn setup_intents_create(
&req,
create_payment_req,
|state, auth, req| {
payments::payments_core::<api_types::Verify, api_types::PaymentsResponse, _, _, _>(
payments::payments_core::<api_types::Verify, api_types::PaymentsResponse, _, _, _, Oss>(
state,
auth.merchant_account,
auth.key_store,
Expand Down Expand Up @@ -113,7 +113,7 @@ pub async fn setup_intents_retrieve(
&req,
payload,
|state, auth, payload| {
payments::payments_core::<api_types::PSync, api_types::PaymentsResponse, _, _, _>(
payments::payments_core::<api_types::PSync, api_types::PaymentsResponse, _, _, _, Oss>(
state,
auth.merchant_account,
auth.key_store,
Expand Down Expand Up @@ -178,7 +178,7 @@ pub async fn setup_intents_update(
&req,
payload,
|state, auth, req| {
payments::payments_core::<api_types::Verify, api_types::PaymentsResponse, _, _, _>(
payments::payments_core::<api_types::Verify, api_types::PaymentsResponse, _, _, _, Oss>(
state,
auth.merchant_account,
auth.key_store,
Expand Down Expand Up @@ -244,7 +244,7 @@ pub async fn setup_intents_confirm(
&req,
payload,
|state, auth, req| {
payments::payments_core::<api_types::Verify, api_types::PaymentsResponse, _, _, _>(
payments::payments_core::<api_types::Verify, api_types::PaymentsResponse, _, _, _, Oss>(
state,
auth.merchant_account,
auth.key_store,
Expand Down
Loading