forked from braintree/braintree_python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcredit_card_verification.py
27 lines (22 loc) · 1.07 KB
/
credit_card_verification.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from braintree.attribute_getter import AttributeGetter
class CreditCardVerification(AttributeGetter):
class Status(object):
"""
Constants representing transaction statuses. Available statuses are:
* braintree.CreditCardVerification.Status.Failed
* braintree.CreditCardVerification.Status.GatewayRejected
* braintree.CreditCardVerification.Status.ProcessorDeclined
* braintree.CreditCardVerification.Status.Unrecognized
* braintree.CreditCardVerification.Status.Verified
"""
Failed = "failed"
GatewayRejected = "gateway_rejected"
ProcessorDeclined = "processor_declined"
Unrecognized = "unrecognized"
Verified = "verified"
def __init__(self, gateway, attributes):
AttributeGetter.__init__(self, attributes)
if "processor_response_code" not in attributes:
self.processor_response_code = None
if "processor_response_text" not in attributes:
self.processor_response_text = None