-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(connector): [Paypal] Add payout flow for wallet(Paypal and Venmo) #4406
Conversation
|
||
/// mobile number linked to paypal account | ||
#[schema(value_type = String, example = "16608213349")] | ||
pub telephone_number: Option<Secret<String>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it include phone country code as well? eg: +91
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope
@@ -21,6 +23,9 @@ use crate::{ | |||
}, | |||
}; | |||
|
|||
#[cfg(feature = "payouts")] | |||
const LANGUAGE: &str = "en-US"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible to move this to consts crate? And name it better? PAYPAL_NOTIFICATION_SCRIPT_LANGUAGE
?
@@ -419,6 +420,9 @@ impl Vaultable for api::CardPayout { | |||
#[derive(Debug, serde::Serialize, serde::Deserialize)] | |||
pub struct TokenizedWalletSensitiveValues { | |||
pub email: Option<Email>, | |||
pub telephone_number: Option<masking::Secret<String>>, | |||
pub paypal_id: Option<masking::Secret<String>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pub paypal_id: Option<masking::Secret<String>>, | |
pub wallet_id: Option<masking::Secret<String>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please resolve ci checks, feature flag needs to be added in const.rs
Type of Change
Description
Paypal and Venmo wallet is added for payout
Additional Changes
Paypal
Venmo
Motivation and Context
How did you test it?
Tested through Postman:
The status should be
requires_fulfillment
The status should be
pending
Venmo cant be tested since it is only available in production
Note: This affects only paypal payout flow
Checklist
cargo +nightly fmt --all
cargo clippy