TransbankDevelopers / transbank-plugin-magento2-webpay-rest

Plugin Magento 2 using Transbank REST API
BSD 3-Clause "New" or "Revised" License
4 stars 10 forks source link

refactor: add validation for double authorization #108

Closed tribiec closed 3 months ago

tribiec commented 3 months ago

This PR adds a validation to prevent double authorization from occurring if the user reloads the page while authorizing a payment or manually calls the authorize endpoint.

Test

Authorization Ok

image

Authorization error

image

Reload page when payment is Ok

image

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud