Skip to content

Release v2.0.8

Choose a tag to compare

@github-actions github-actions released this 11 Mar 09:54
· 4 commits to main since this release

Changelog

Thanks to Dealer86 and dk766

Added

  • Support for both Direct Payment (API) and Indirect Payment (Hosted Payment Page - HPP) in the Python SDK.
  • Adjusted PaymentData.instrument to be optional, allowing Hosted Payment flow without requiring PCI DSS compliance.
  • Modified start_payment() to dynamically adjust the request payload based on the selected payment flow.

Fixed

  • Bug in get_status() after payment
    Problem:
    The PaymentService.get_status(ntpID: str, orderID: str) method did not work because the PaymentStatusParam dataclass inside get_status() was missing the orderID parameter.

    Solution:
    Added the missing orderID parameter to the PaymentStatusParam dataclass, ensuring that status requests include all necessary data.

    Expected Behavior:
    When provided with the correct parameters, get_status() should now correctly return the status of the order based on the provided orderID.

Changed

  • Refactored start_payment() logic to support both Direct and Hosted Payment flows dynamically.
  • Updated error handling for invalid parameters when initializing a transaction.

Removed

  • N/A