hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

feat(connector) : add Cards(3ds & non3ds),bank_redirects and paypal_redirection support to nexinets

Open srujanchikke opened this issue 1 year ago • 1 comments

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 Screenshot 2023-04-17 at 4 27 37 PM

3ds test cards 1)friction less flow : 4111111111111111 2)challenge flow : 4000007000000031

Intiate 3ds transaction : Screenshot 2023-04-18 at 11 19 09 AM

redirect to challenge page :

Screenshot 2023-04-18 at 11 19 28 AM

successful redirection after successful transaction :

Screenshot 2023-04-18 at 11 19 55 AM

Bank Redirects Screenshots Redirect url in response : Screenshot 2023-04-17 at 5 52 01 PM Redirect to ideal page : Screenshot 2023-04-17 at 5 52 09 PM Redirection after successful payment : Screenshot 2023-04-17 at 5 52 23 PM Successful updation of payment status : Screenshot 2023-04-17 at 5 52 58 PM

Paypal Redirection Redirect url in response: Screenshot 2023-04-17 at 5 59 06 PM Redirect to paypal page Screenshot 2023-04-17 at 5 59 19 PM Redirection after successful payment Screenshot 2023-04-17 at 5 59 31 PM Successful updation of payment status Screenshot 2023-04-17 at 5 59 59 PM

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 avatar Apr 17 '23 13:04 srujanchikke

@srujanchikke as discussed with @jarnura please make changes for transaction Id and order id

ArjunKarthik avatar Apr 19 '23 06:04 ArjunKarthik

@jarnura The merge after our approvals were from his another PR #1009 . Changing the label to l2 review required.

ArjunKarthik avatar May 03 '23 06:05 ArjunKarthik