Class TransactionData (1.23.0)

TransactionData(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Transaction data associated with a payment protected by reCAPTCHA Enterprise.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
transaction_id str
Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id. This field is a member of oneof_ _transaction_id.
payment_method str
Optional. The payment method for the transaction. The allowed values are: - credit-card - debit-card - gift-card - processor-{name} (If a third-party is used, for example, processor-paypal) - custom-{name} (If an alternative method is used, for example, custom-crypto)
card_bin str
Optional. The Bank Identification Number - generally the first 6 or 8 digits of the card.
card_last_four str
Optional. The last four digits of the card.
currency_code str
Optional. The currency code in ISO-4217 format.
value float
Optional. The decimal value of the transaction in the specified currency.
shipping_value float
Optional. The value of shipping in the specified currency. 0 for free or no shipping.
shipping_address google.cloud.recaptchaenterprise_v1.types.TransactionData.Address
Optional. Destination address if this transaction involves shipping a physical item.
billing_address google.cloud.recaptchaenterprise_v1.types.TransactionData.Address
Optional. Address associated with the payment method when applicable.
user google.cloud.recaptchaenterprise_v1.types.TransactionData.User
Optional. Information about the user paying/initiating the transaction.
merchants MutableSequence[google.cloud.recaptchaenterprise_v1.types.TransactionData.User]
Optional. Information about the user or users fulfilling the transaction.
items MutableSequence[google.cloud.recaptchaenterprise_v1.types.TransactionData.Item]
Optional. Items purchased in this transaction.
gateway_info google.cloud.recaptchaenterprise_v1.types.TransactionData.GatewayInfo
Optional. Information about the payment gateway's response to the transaction.

Classes

Address

Address(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Structured address format for billing and shipping addresses.

GatewayInfo

GatewayInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Details about the transaction from the gateway.

Item

Item(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Line items being purchased in this transaction.

User

User(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Details about a user's account involved in the transaction.