Skip to content

Conversation

AbhishekChorotiya
Copy link
Contributor

@AbhishekChorotiya AbhishekChorotiya commented Mar 24, 2025

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Redsys 3DS auth implementation.

  • handled new next action invoke_hidden_iframe

  • Task Details:
    new next action behavior (invoke_hidden_iframe)
    Construct a hidden Iframe as given bellow
    endpoint: three_ds_method_url
    input field name: method_key
    input field value: three_ds_method_data
    On submitting, wait for the 10sec time out. If submission of the form takes more than 10secs, call complete_authorize with client_secret and threeds_method_comp_ind flag marked as "N" . Else send threeds_method_comp_ind marked as "Y".

curl --location 'http://localhost:8080/payments/pay_2n5oBH26fEGkdLjsw152/complete_authorize' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: pk_dev_a4914922937e42f7a55065450b26aa1d' \ --data '{ "threeds_method_comp_ind": "Y", "client_secret": "pay_2n5oBH26fEGkdLjsw152_secret_p8t3s9TtYkhjbV63hgax" }'

This complete authorize call can either return the payment status with no next action or return a redirect_to_url next action.

How did you test it?

Tested Locally

output_compressed.mov

Checklist

  • I ran npm run re:build
  • I reviewed submitted code
  • I added unit tests for my changes where possible

Copy link

Review changes with  SemanticDiff

@PritishBudhiraja PritishBudhiraja added the Ready for Review PR with label Ready for Review should only be reviewed. label Mar 27, 2025
@PritishBudhiraja PritishBudhiraja merged commit b4bea78 into main Mar 27, 2025
4 checks passed
@PritishBudhiraja PritishBudhiraja deleted the feat/redsys_3ds branch March 27, 2025 12:21
@github-actions github-actions bot added Closed Label will be automatically added when the PR will get merged to main and removed Ready for Review PR with label Ready for Review should only be reviewed. labels Mar 27, 2025
Sanskar2001 pushed a commit that referenced this pull request Mar 27, 2025
# [0.120.0](v0.119.9...v0.120.0) (2025-03-27)

### Features

* integration for redsys 3ds ([#963](#963)) ([b4bea78](b4bea78))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Label will be automatically added when the PR will get merged to main
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants