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

[PW-6286] Pad shopperReference when getting contracts #1427

Merged
merged 2 commits into from Apr 6, 2022
Merged

Conversation

AlexandrosMor
Copy link
Contributor

Add padding to shopperReference in listRecurringContractByType

Description
The plugin sends a request to Adyen to get all the billing agreements of a shopper, whenever a RECURRING_CONTRACT webhook is handled and vault is not being used.

In case the shopperReference is one digit then in the request should be padded.
For example instead of shopperReference = 2 should be shopperReference=002

In other case the request will result in the fetching of incorrect contracts (since the shopperReference is different).

Tested scenarios

  • Process a notification with eventCode RECURRING_CONTRACT

Add padding to shopperReference in listRecurringContractByType
@sonarcloud
Copy link

sonarcloud bot commented Apr 6, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@AlexandrosMor AlexandrosMor merged commit ab88a41 into develop Apr 6, 2022
@AlexandrosMor AlexandrosMor deleted the PW-6286 branch April 6, 2022 11:54
peterojo pushed a commit that referenced this pull request Apr 11, 2022
Add padding to shopperReference in listRecurringContractByType
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.

None yet

3 participants