fix(connector): [CYBERSOURCE] Handle HTML Error Response and add Descriptor field in ApplePay payments request #4451
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Following connector audit changes are done for wallets for connector Cybersource:
paymentInformation.fluidData.descriptor
is passed in apple pay payments requestAdditional Changes
Motivation and Context
#4450
How did you test it?
Manual flow apple payments need to be tested via cybersource.
Request:
Response:
Bad Request Error(this cannot be tested on sbx):
![Screenshot 2024-04-24 at 5 01 41 PM](https://private-user-images.githubusercontent.com/41580413/325202249-3848cc20-3598-4df5-8416-5b4b72f212d9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyODQ3MDAsIm5iZiI6MTcxODI4NDQwMCwicGF0aCI6Ii80MTU4MDQxMy8zMjUyMDIyNDktMzg0OGNjMjAtMzU5OC00ZGY1LTg0MTYtNWI0YjcyZjIxMmQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEzVDEzMTMyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRjOGExZDA5MTk3ZDEyNTJhNzRlYzJkNzk5MzI2NTYwOTE1ZWZlODU4ZjZiODNmMGM1NDRmZDI4OGMyNDliNWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.iDJOxc6nD_1zA32IcMCGY5ytMNsV-Gg2MDN6hjtBNEk)
![image](https://private-user-images.githubusercontent.com/41580413/325202598-477094d9-b805-4b0d-8570-5db5898b7e94.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyODQ3MDAsIm5iZiI6MTcxODI4NDQwMCwicGF0aCI6Ii80MTU4MDQxMy8zMjUyMDI1OTgtNDc3MDk0ZDktYjgwNS00YjBkLTg1NzAtNWRiNTg5OGI3ZTk0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEzVDEzMTMyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBjZGYwMDc4MjQ4YzlkOTY5YjNhNjg1ZjkwMTVjZjExNmU5MjcwNjgwZDUxYjk5OTJiYzM4NjRkMGQ5ZjUyZmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.DruGSv9VBl7Yo7r4gZsnXPhYljtxgtxOjr_gfICdSGs)
Checklist
cargo +nightly fmt --all
cargo clippy