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

Add approve method to Payments resource #61

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

jonathanpmartins
Copy link
Contributor

Description

This pull request introduces a new approve method to the Payments resource, enabling users to approve payments via the API.

Key Highlights:

  • Implements the approve method to send POST requests to /api/v1/payment/approve.
  • Includes a corresponding test, testApprove, to validate the behavior of the new method.
  • Usage example and detailed documentation are provided in the method's PHPDoc.

Reference: https://developers.openpix.com.br/api#tag/payment-(request-access)/paths/~1api~1v1~1payment~1approve/post

@jonathanpmartins jonathanpmartins changed the title Add "approve" method to Payments resource Add approve method to Payments resource Dec 20, 2024
@sibelius sibelius merged commit 82d1ae3 into woovibr:main Dec 20, 2024
9 checks passed
jonathanpmartins added a commit to jonathanpmartins/php-sdk that referenced this pull request Dec 20, 2024
As of the last two pull requests were merged in the main branch, I think they will enter the next 1.1.5 version. So the CHANGELOG file needs to be updated to describe the latest changes.

- [Add approve method to Payments resource](woovibr#61)
- [Add Accounts Resource to PHP-SDK](woovibr#62)
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