Skip to content

Conversation

eraserhead0705
Copy link

What problem you’re solving:
The Adyen Python Library lacks support for the full Checkout API actions.
Capture
Refund
Reversals
Cancel/Technical Cancel

Our Team at Tier needs this functionality implemented in the Python library in order to fully integrate with our backend system.

Your approach to fixing the problem:
Implemented the above functionality by building on the current service/client in the code base. I added a new parameter to send a path parameter to the Adyen Api.

Any tests you wrote:
Each new action has two tests written, one success and one that mocks an error.
Additionally a test that checks for raise condition.

Note:
I included a commit with a updated README. This was from a Adyen dev .

eraserhead0705 and others added 2 commits June 9, 2021 15:22
* [PW-4392] Update README based on the new template (Adyen#140)

* Update README based on the new template

* Update the endpoints versions

* Add the api versions in the description

* Add the example with xapi key

* Apply suggestions from code review

Co-authored-by: Ángel Campos <angel.campos@adyen.com>

* Update README.md

Co-authored-by: Alessio Zampatti <alessio.zampatti@adyen.com>

Co-authored-by: Ángel Campos <angel.campos@adyen.com>
Co-authored-by: Alessio Zampatti <alessio.zampatti@adyen.com>

* Adding cancels action

* [PW-4392] Update README based on the new template (Adyen#140)

* Update README based on the new template

* Update the endpoints versions

* Add the api versions in the description

* Add the example with xapi key

* Apply suggestions from code review

Co-authored-by: Ángel Campos <angel.campos@adyen.com>

* Update README.md

Co-authored-by: Alessio Zampatti <alessio.zampatti@adyen.com>

Co-authored-by: Ángel Campos <angel.campos@adyen.com>
Co-authored-by: Alessio Zampatti <alessio.zampatti@adyen.com>

* Adding cancels action

* Adding modifications to checkout api

Co-authored-by: Alexandros Moraitis <alexandros.moraitis@adyen.com>
Co-authored-by: Ángel Campos <angel.campos@adyen.com>
Co-authored-by: Alessio Zampatti <alessio.zampatti@adyen.com>
Co-authored-by: Eric Laff <eric.laff@tier.app>
Co-authored-by: Eric Laff <eric.laff@tier.app>
Copy link
Contributor

@acampos1916 acampos1916 left a comment

Choose a reason for hiding this comment

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

Thanks for this contribution @eraserhead0705. I've left a couple of comments. Please re-open the pull request to develop instead of master

https://docs.adyen.com/developers/checkout/api-integration
service (str): This is the API service to be called.
action (str): The specific action of the API service to be called
path_param (str): This is used to pass the id or referenceID to the API sercie
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
path_param (str): This is used to pass the id or referenceID to the API sercie
path_param (str): This is used to pass the ID or referenceID to the API service

Copy link
Author

Choose a reason for hiding this comment

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

Will fix this and open a new PR to develop,

[![Build Status](https://travis-ci.org/Adyen/adyen-python-api-library.svg?branch=master)](https://travis-ci.org/Adyen/adyen-python-api-library)
[![Coverage Status](https://coveralls.io/repos/github/Adyen/adyen-python-api-library/badge.svg?branch=master)](https://coveralls.io/github/Adyen/adyen-python-api-library?branch=master)

# Adyen APIs Library for Python
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this being removed?

Copy link
Author

Choose a reason for hiding this comment

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

Not sure but these changes are stale now. Will not include them when I reopen.

@acampos1916
Copy link
Contributor

Closing the PR as it should point to develop instead of master. We can edit the base branch here but I think the contributor needs to double check that the commits apply correctly to develop. Thanks for the contribution!

@eraserhead0705
Copy link
Author

@acampos1916 Thanks so much for the comments! I will go ahead and fix the above accordingly and reopen the PR. Additionally I will not include the readme edits as those have been merged. 👍

@AlexandrosMor AlexandrosMor mentioned this pull request Oct 18, 2021
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