guibranco / MaxiPago-SDK-dotnet

💳 ⚙️ MaxiPago gateway SDK for .NET projects
https://guibranco.github.io/MaxiPago-SDK-dotnet/
MIT License
3 stars 2 forks source link

Add support to PIX with gitauto model #148

Closed gitauto-ai[bot] closed 2 months ago

gitauto-ai[bot] commented 3 months ago

Original issue: #61

What is the feature

This feature adds support for PIX (SPI) payment method to the MaxiPago system.

Why we need the feature

PIX is a widely used instant payment system in Brazil, and supporting it will allow our users to process payments more efficiently and securely. This will enhance the usability and attractiveness of our platform for Brazilian customers.

How to implement and why

  1. Update Data Contracts:

    • Add new classes and properties in Src/MaxiPago/DataContract/Transactional to handle PIX-specific data.
    • Example: Create a PixPayment class to encapsulate PIX payment details.
  2. Modify Transaction Handling:

    • Update Src/MaxiPago/Gateway/Transaction.cs to include methods for processing PIX payments.
    • Ensure that the new methods handle the specific requirements and responses of the PIX system.
  3. API Integration:

    • Update Src/MaxiPago/Gateway/Api.cs to integrate with the PIX API as per the documentation.
    • Implement necessary API calls and handle responses.
  4. Testing:

    • Add unit tests in Tests/MaxiPago.Tests to cover the new PIX payment functionality.
    • Ensure that all edge cases and error scenarios are tested.
  5. Documentation:

    • Update README.md and any other relevant documentation to include instructions and details about the new PIX payment support.

By following these steps, we ensure that the PIX payment method is seamlessly integrated into the MaxiPago system, providing a robust and reliable payment option for our users.

Test these changes locally

git checkout -b gitauto/issue-#61-cde703bf-67fb-4878-af16-e17f60a29b80
git pull origin gitauto/issue-#61-cde703bf-67fb-4878-af16-e17f60a29b80
AppVeyorBot commented 3 months ago

:x: Build MaxiPago-SDK-dotnet 3.0.511 failed (commit https://github.com/guibranco/MaxiPago-SDK-dotnet/commit/41abab6c42 by @gitauto-ai[bot])

AppVeyorBot commented 2 months ago

:x: Build MaxiPago-SDK-dotnet 3.0.524 failed (commit https://github.com/guibranco/MaxiPago-SDK-dotnet/commit/e9624c99e1 by @guibranco)

AppVeyorBot commented 2 months ago

:x: Build MaxiPago-SDK-dotnet 3.0.530 failed (commit https://github.com/guibranco/MaxiPago-SDK-dotnet/commit/a7d92d7365 by @gstraccini[bot])