Repository navigation
Release v2.0.8
Changelog
Added
- Support for both Direct Payment (API) and Indirect Payment (Hosted Payment Page - HPP) in the Python SDK.
- Adjusted
PaymentData.instrumentto 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:
ThePaymentService.get_status(ntpID: str, orderID: str)method did not work because thePaymentStatusParamdataclass insideget_status()was missing theorderIDparameter.Solution:
Added the missingorderIDparameter to thePaymentStatusParamdataclass, 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 providedorderID.
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