hyperswitch
hyperswitch copied to clipboard
feat(connector) : add Cards(3ds & non3ds),bank_redirects and paypal_redirection support to nexinets
Type of Change
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
Description
Adding following features to connector Nexinets 1) Authorize ,Capture ,Void ,Refund, Psync and Rsync for ThreeDS and non ThreeDS cards connector.rs 2)bank redirects : ideal, sofort, eps and Giropay transformers.rs 3)Wallet : Paypal redirection 4)Integration tests for non ThreeDS
Additional Changes
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
Motivation and Context
Note :
1)In the status mapping for the state Ok
,
-Authorize flow => Authorized
-All other flows (Capture, Cancel, AutoCapture, Refund) => Processing.
2)In the response, we get two connector transaction IDs: -order_id => remains the same for further actions regarding that transaction.. -transaction_id => changes for every subsequent action (cancel, refund, capture, partial refund). -Both order_id and transaction_id are used for further actions (Psync, Cancel, Rsync, Refund, Capture), which should be passed in the URL. -We are storing the order_id in the connector_metadata. The transaction_id is stored in the connector_transaction_id once the payment has been captured, until then it is stored in the connector_metadata.
How did you test it?
Integration Tests
3ds test cards 1)friction less flow : 4111111111111111 2)challenge flow : 4000007000000031
Intiate 3ds transaction :
redirect to challenge page :

successful redirection after successful transaction :

Bank Redirects Screenshots
Redirect url in response :
Redirect to ideal page :
Redirection after successful payment :
Successful updation of payment status :
Paypal Redirection
Redirect url in response:
Redirect to paypal page
Redirection after successful payment
Successful updation of payment status
Checklist
- [x] I formatted the code
cargo +nightly fmt --all
- [x] I addressed lints thrown by
cargo clippy
- [x] I reviewed submitted code
- [x] I added unit tests for my changes where possible
- [ ] I added a CHANGELOG entry if applicable
@srujanchikke as discussed with @jarnura please make changes for transaction Id and order id
@jarnura The merge after our approvals were from his another PR #1009 . Changing the label to l2 review required.