| Total Complexity | 6 |
| Complexity/F | 6 |
| Lines of Code | 14 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | if (Review) { |
||
|
|
|||
| 2 | Review.prototype.nextStep = Review.prototype.nextStep.wrap(function (superMethod, transport) { |
||
| 3 | if (transport && payment && payment.currentMethod.indexOf("payone") !== -1) { |
||
| 4 | var response = transport.responseJSON || transport.responseText.evalJSON(true) || {}; |
||
| 5 | |||
| 6 | if (response.redirect) { |
||
| 7 | this.isSuccess = true; |
||
| 8 | location.href = response.redirect; |
||
| 9 | return; |
||
| 10 | } |
||
| 11 | } |
||
| 12 | return superMethod(transport); |
||
| 13 | }); |
||
| 14 | } |
||
| 15 |