Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PP-11244 Remove handling for old GET token response #3552

Merged

Conversation

stephencdaly
Copy link
Contributor

Connector has now been updated so that the GET token response uses the FrontendChargeResponse schema for the embedded charge rather than ChargeEntity.

Remove the handling for the old response.

Update secure.controller.test.js for this change, and refactor it slightly to make it easier to understand.

Update the Pact test for the GET token endpoint to validate the embedded charge in the response using the new schema.

@stephencdaly stephencdaly force-pushed the PP-11244-remove-handling-for-old-tokens-response branch from cf98312 to 4d392b1 Compare July 4, 2023 15:43
gatewayAccountId = tokenResponse.charge.gateway_account.gateway_account_id
gatewayAccountType = tokenResponse.charge.gateway_account.type
}
console.log('TOKEN RESPONSE: ' + JSON.stringify(tokenResponse))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.log ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, removed

Connector has now been updated so that the GET token response uses
the FrontendChargeResponse schema for the embedded charge rather than
ChargeEntity.

Remove the handling for the old response.

Update `secure.controller.test.js` for this change, and refactor it
slightly to make it easier to understand.

Update the Pact test for the GET token endpoint to validate the
embedded charge in the response using the new schema.
@stephencdaly stephencdaly force-pushed the PP-11244-remove-handling-for-old-tokens-response branch from 4d392b1 to 6ecb054 Compare July 4, 2023 16:21
@stephencdaly stephencdaly merged commit 32061c6 into master Jul 4, 2023
5 checks passed
@stephencdaly stephencdaly deleted the PP-11244-remove-handling-for-old-tokens-response branch July 4, 2023 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants