Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bugfix for Cybersource. Wrong exception was except #324

Closed
wants to merge 1 commit into from
Closed
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
6 changes: 6 additions & 0 deletions docs/backends.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ accomplished by passing your data to the :class:`Payment` instance::

>>> payment.attrs.merchant_defined_data = {'01': 'foo', '02': 'bar'}

Fingerprinting::

Cybersource allows you to pass a fingerprint data to help identify fraud

>>> payment.attrs.fingerprint_session_id


Dotpay
------
Expand Down
4 changes: 2 additions & 2 deletions payments/cybersource/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def _get_params_for_new_payment(self, payment):
}
try:
fingerprint_id = payment.attrs.fingerprint_session_id
except KeyError:
except AttributeError:
pass
else:
params["deviceFingerprintID"] = fingerprint_id
Expand Down Expand Up @@ -446,7 +446,7 @@ def _prepare_items(self, payment):
def _prepare_merchant_defined_data(self, payment):
try:
merchant_defined_data = payment.attrs.merchant_defined_data
except KeyError:
except AttributeError:
return
else:
data = self.client.factory.create("data:MerchantDefinedData")
Expand Down