-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat(connector): [globalpay, globepay, itaubank, nexinets, nuvei, prophetpay, zen] add in feature matrix #7258
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
base: main
Are you sure you want to change the base?
Conversation
Changed Files
|
fe8bf37
to
9218d62
Compare
64b06df
to
b6438a0
Compare
b6438a0
to
ab9cf0d
Compare
connector_type: enums::PaymentConnectorCategory::PaymentGateway, | ||
}; | ||
|
||
static GLOBALPAY_SUPPORTED_WEBHOOK_FLOWS: [enums::EventClass; 0] = []; |
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.
Seems like Globalpay supports webhook, can you confirm this once ?
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.
Yes it supports, have added it.
specific_features: Some( | ||
api_models::feature_matrix::PaymentMethodSpecificFeatures::Card({ | ||
api_models::feature_matrix::CardSpecificFeatures { | ||
three_ds: common_enums::FeatureStatus::Supported, |
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 Gobalpay support both 3ds and no-3ds cards ?
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.
No it doesn't support three-ds
, have removed it
display_name: "Globepay", | ||
description: "GlobePay Limited is a professional cross-border payment solution provider (WeChat Pay & Alipay) in the UK", | ||
connector_type: enums::PaymentConnectorCategory::PaymentGateway, |
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.
Can you update this to reflect Globalpay ?
impl ConnectorSpecifications for Itaubank {} | ||
static ITAUBANK_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> = | ||
LazyLock::new(|| { | ||
let supported_capture_methods = Vec::new(); |
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.
Supported Capture method is None ?
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.
Yes, get_url
and get_request_body
is not implemented for itaubank
and PaymentsResponse
is sent while handling response for capture
PaymentMethodDetails { | ||
mandates: enums::FeatureStatus::NotSupported, | ||
refunds: enums::FeatureStatus::Supported, | ||
supported_capture_methods: supported_capture_methods.clone(), |
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.
If there is only one place to use supported_capture_methods
. Let's not declare a variable for it.
connector_type: enums::PaymentConnectorCategory::PaymentGateway, | ||
}; | ||
|
||
static NUVEI_SUPPORTED_WEBHOOK_FLOWS: [enums::EventClass; 0] = []; |
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.
Can you check this, seems like webhooks are supported in Nuvei
connector_type: enums::PaymentConnectorCategory::PaymentGateway, | ||
}; | ||
|
||
static ZEN_SUPPORTED_WEBHOOK_FLOWS: Vec<enums::EventClass> = Vec::new(); |
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.
Seems like zen supports webhook, can you do related changes here.
Make it an array.
5f5ea7a
to
e0e8dc2
Compare
|
||
static NEXINETS_CONNECTOR_INFO: ConnectorInfo = ConnectorInfo { | ||
display_name: "Nexinets", | ||
description: "Itau Bank is a leading Brazilian financial institution offering a wide range of banking services, including retail banking, loans, and investment solutions.", |
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 update this with Nexinet's description
zen_supported_payment_methods.add( | ||
enums::PaymentMethod::Voucher, | ||
enums::PaymentMethodType::Boleto, | ||
PaymentMethodDetails { | ||
mandates: enums::FeatureStatus::NotSupported, | ||
refunds: enums::FeatureStatus::Supported, | ||
supported_capture_methods: supported_capture_methods.clone(), | ||
specific_features: None, | ||
}, | ||
); | ||
zen_supported_payment_methods.add( | ||
enums::PaymentMethod::Voucher, | ||
enums::PaymentMethodType::Efecty, | ||
PaymentMethodDetails { | ||
mandates: enums::FeatureStatus::NotSupported, | ||
refunds: enums::FeatureStatus::Supported, | ||
supported_capture_methods: supported_capture_methods.clone(), | ||
specific_features: None, | ||
}, | ||
); | ||
zen_supported_payment_methods.add( | ||
enums::PaymentMethod::Voucher, | ||
enums::PaymentMethodType::PagoEfectivo, | ||
PaymentMethodDetails { | ||
mandates: enums::FeatureStatus::NotSupported, | ||
refunds: enums::FeatureStatus::Supported, | ||
supported_capture_methods: supported_capture_methods.clone(), | ||
specific_features: None, | ||
}, | ||
); | ||
zen_supported_payment_methods.add( | ||
enums::PaymentMethod::Voucher, | ||
enums::PaymentMethodType::RedCompra, | ||
PaymentMethodDetails { | ||
mandates: enums::FeatureStatus::NotSupported, | ||
refunds: enums::FeatureStatus::Supported, | ||
supported_capture_methods: supported_capture_methods.clone(), | ||
specific_features: None, | ||
}, | ||
); | ||
zen_supported_payment_methods.add( | ||
enums::PaymentMethod::Voucher, | ||
enums::PaymentMethodType::RedPagos, | ||
PaymentMethodDetails { | ||
mandates: enums::FeatureStatus::NotSupported, | ||
refunds: enums::FeatureStatus::Supported, | ||
supported_capture_methods: supported_capture_methods.clone(), | ||
specific_features: None, | ||
}, | ||
); |
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 vouchers support mandates and/or refunds ?
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.
ZEN
does support mandates
for vouchers
; however, we currently do not have the corresponding endpoint integrated — specifically, the /fetch-subscription endpoint.
Regarding refunds
, the documentation indicates that a refund can be processed using a transaction_id
, which includes transactions made via different payment methods. However, for partial refunds, it is explicitly stated that they are not always supported. This is outlined in the official documentation for creating a refund
transaction: Create Refund Transaction.
Type of Change
Description
Add globalpay, globepay, itaubank, nexinets, nuvei, prophetpay, zen connectors in feature matrix
Additional Changes
Motivation and Context
How did you test it?
Response
Checklist
cargo +nightly fmt --all
cargo clippy