Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c1c6023
do struct changes for mandates
KiranKBR Jul 15, 2024
5f617ee
remove comments
KiranKBR Jul 15, 2024
19cb59c
add connector_customer_id to mandate reference
KiranKBR Jul 16, 2024
a94c6cc
add changes to MandateReference
KiranKBR Jul 17, 2024
7a6764e
Merge branch 'main' of https://github.com/juspay/hyperswitch into pay…
KiranKBR Jul 22, 2024
6020ff0
include card vault request
KiranKBR Jul 23, 2024
47c367b
Merge branch 'main' of https://github.com/juspay/hyperswitch into pay…
KiranKBR Aug 22, 2024
7a23d81
change session flow paypal metadata
KiranKBR Aug 22, 2024
4e3bb00
remove braintree graphql
KiranKBR Aug 22, 2024
0ad1603
remove connector_customer_id from mandate reference
KiranKBR Aug 22, 2024
b6bcb25
apply nightly format
KiranKBR Aug 22, 2024
e0ac6f5
resolve comments
KiranKBR Aug 23, 2024
587a104
Merge branch 'main' of https://github.com/juspay/hyperswitch into pay…
KiranKBR Aug 29, 2024
60c0a8d
reolve clippy issues
KiranKBR Aug 29, 2024
447d472
Merge branch 'main' of https://github.com/juspay/hyperswitch into pay…
KiranKBR Aug 30, 2024
b3b0316
refactor: merge main
swangi-kumari Oct 28, 2024
0f92960
Merge branch 'main' into paypal-wallet-vaulting-while-purchasing
swangi-kumari Oct 28, 2024
41f3f26
refactor: fix
swangi-kumari Oct 29, 2024
59f2b63
refactor: add router return url
swangi-kumari Oct 30, 2024
14ac8e4
refactor: make name as optional
swangi-kumari Oct 30, 2024
9383da1
Merge branch 'main' into paypal-wallet-vaulting-while-purchasing
swangi-kumari Nov 5, 2024
c334ce5
refactor: resolve clipy
swangi-kumari Nov 5, 2024
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
15 changes: 14 additions & 1 deletion crates/router/src/connector/paypal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ use crate::{
configs::settings,
connector::{
utils as connector_utils,
utils::{to_connector_meta, ConnectorErrorTypeMapping, RefundsRequestData},
utils::{
to_connector_meta, ConnectorErrorTypeMapping, PaymentMethodDataType, RefundsRequestData,
},
},
consts,
core::{
Expand Down Expand Up @@ -327,6 +329,17 @@ impl ConnectorValidation for Paypal {
),
}
}
fn validate_mandate_payment(
&self,
pm_type: Option<types::storage::enums::PaymentMethodType>,
pm_data: types::domain::payments::PaymentMethodData,
) -> CustomResult<(), errors::ConnectorError> {
let mandate_supported_pmd = std::collections::HashSet::from([
PaymentMethodDataType::Card,
PaymentMethodDataType::PaypalRedirect,
]);
connector_utils::is_mandate_supported(pm_data, pm_type, mandate_supported_pmd, self.id())
}
}

impl
Expand Down
Loading
Loading