feat(connector): [Nexixpay] add mandates flow for cards#6259
feat(connector): [Nexixpay] add mandates flow for cards#6259likhinbopanna merged 10 commits intomainfrom
Conversation
Changed Files
|
caa6bdc to
05708e2
Compare
| data: data.clone(), | ||
| http_code: res.status_code, | ||
| }) | ||
| if data.request.connector_mandate_id().is_none() { |
There was a problem hiding this comment.
this check won't be needed if we use an enum for the PaymentsResponse
enum NexixpayResponse { PaymentsPresonse(NexixpayPaymentsResponse), MandateResponse(NexixpayMandateResponse), }
`
There was a problem hiding this comment.
Take reference from Fiuu: Transformers
#[serde(untagged)]
pub enum FiuuPaymentsResponse {
PaymentResponse(Box<PaymentsResponse>),
QRPaymentResponse(Box<DuitNowQrCodeResponse>),
Error(FiuuErrorResponse),
RecurringResponse(Vec<Box<FiuuRecurringResponse>>),
}
c50b691 to
e9826fe
Compare
srujanchikke
left a comment
There was a problem hiding this comment.
Please add cypress test cases as well.
There was a problem hiding this comment.
can we check for off_session instead
There was a problem hiding this comment.
tried this but it creates problem as normal payment and cit payment both use same endpoint.
There was a problem hiding this comment.
All required fields should be added in payment_connector_required_fields.rs file
There was a problem hiding this comment.
Its already added
There was a problem hiding this comment.
why are we hardcoding shipping address to billing_address ?
|
26f8b4a to
4f85626
Compare
4f85626 to
82749d8
Compare
aabcadc
82749d8 to
aabcadc
Compare
|
@mrudulvajpayee4935 Please run the cypress testcases for nexixpay |
do we have support for 3ds mandates cypress tests? @Gnanasundari24 |
0394a63 to
26496f9
Compare
54743ec to
3e810f8
Compare
There was a problem hiding this comment.
Can you declare billing as const and use it everywhere else the billing address are same
09e3b1b to
1eba637
Compare
There was a problem hiding this comment.
august will come sooner than you might expect:
| card_exp_year: "25", | |
| card_exp_year: "50", |
There was a problem hiding this comment.
In L53 you've declared customerAcceptance. Move it above, and re-use it here and below.
There was a problem hiding this comment.
Are you sure about this?
status is expected to be 400. Unless the connector has specific error message, this line is not needed as it will be handled by Commons.
Same applies to else where below.
There was a problem hiding this comment.
You will have to change the implementation once #6588 gets merged here and else where for trigger_skip
There was a problem hiding this comment.
again, since the same object is used in multiple places, this can be re-used by creating a constant object.
3789380 to
4b01f10
Compare
pixincreate
left a comment
There was a problem hiding this comment.
other than that, looks good to me.
i also recommend you to run tests locally to see if everything works.
There was a problem hiding this comment.
increase this year to a later date. august 2025 will come sooner than you might expect.
4b01f10 to
176d2aa
Compare
a216702 to
0cd2a9c
Compare
Type of Change
Description
Integrate mandates flow for card payments.
https://developer.nexi.it/en/funzionalita-/pagamenti-ricorrenti
Additional Changes
Motivation and Context
How did you test it?
Cypress test:
1) Multiuse mandates

2) Singleuse mandates

3) Test cases in the headless mode

Note:
Create Call
Confirm Call
MIT Call
Checklist
cargo +nightly fmt --allcargo clippy