Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!--
A new scriv changelog fragment.

Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Removed

- A bullet item for the Removed category.

-->
<!--
### Added

- A bullet item for the Added category.

-->
### Changed

- Wrap the imports for CyberSource; they generate `SyntaxWarning`s, so this should quiet them down (and allow them to pass tests)

<!--
### Deprecated

- A bullet item for the Deprecated category.

-->
<!--
### Fixed

- A bullet item for the Fixed category.

-->
<!--
### Security

- A bullet item for the Security category.

-->
23 changes: 13 additions & 10 deletions src/payment_gateway/mitol/payment_gateway/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,24 @@
import hmac
import json
import uuid
import warnings
from base64 import b64encode
from dataclasses import dataclass
from decimal import Decimal
from functools import wraps

from CyberSource import (
CreateSearchRequest,
Ptsv2paymentsClientReferenceInformation,
Ptsv2paymentsidcapturesOrderInformationAmountDetails,
Ptsv2paymentsidrefundsOrderInformation,
RefundApi,
RefundPaymentRequest,
SearchTransactionsApi,
TransactionDetailsApi,
)
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=SyntaxWarning)
from CyberSource import (
CreateSearchRequest,
Ptsv2paymentsClientReferenceInformation,
Ptsv2paymentsidcapturesOrderInformationAmountDetails,
Ptsv2paymentsidrefundsOrderInformation,
RefundApi,
RefundPaymentRequest,
SearchTransactionsApi,
TransactionDetailsApi,
)
from django.conf import settings

from mitol.common.utils.datetime import now_in_utc
Expand Down
4 changes: 2 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.