Skip to content

Commit

Permalink
refactor: handle authentication_pending attempt status during retriev…
Browse files Browse the repository at this point in the history
…e call
  • Loading branch information
pixincreate committed Aug 27, 2024
1 parent 146251d commit ee79bb7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cypress-tests/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -1419,6 +1419,14 @@ Cypress.Commands.add(
response.body.status === "succeeded"
) {
expect(response.body.attempts[key].status).to.equal("charged");
} else if (
response.body.attempts[key].attempt_id ===
`${payment_id}_${attempt}` &&
response.body.status === "requires_customer_action"
) {
expect(response.body.attempts[key].status).to.equal(
"authentication_pending"
);
} else {
expect(response.body.attempts[key].status).to.equal("failure");
}
Expand Down

0 comments on commit ee79bb7

Please # to comment.