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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class TransactionData (1.28.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.28.2 (latest)](/python/docs/reference/recaptchaenterprise/latest/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.28.1](/python/docs/reference/recaptchaenterprise/1.28.1/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.27.0](/python/docs/reference/recaptchaenterprise/1.27.0/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.26.1](/python/docs/reference/recaptchaenterprise/1.26.1/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.25.0](/python/docs/reference/recaptchaenterprise/1.25.0/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.24.1](/python/docs/reference/recaptchaenterprise/1.24.1/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.23.0](/python/docs/reference/recaptchaenterprise/1.23.0/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.22.0](/python/docs/reference/recaptchaenterprise/1.22.0/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.21.2](/python/docs/reference/recaptchaenterprise/1.21.2/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.20.0](/python/docs/reference/recaptchaenterprise/1.20.0/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.19.1](/python/docs/reference/recaptchaenterprise/1.19.1/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.18.1](/python/docs/reference/recaptchaenterprise/1.18.1/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.17.1](/python/docs/reference/recaptchaenterprise/1.17.1/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.16.1](/python/docs/reference/recaptchaenterprise/1.16.1/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.15.0](/python/docs/reference/recaptchaenterprise/1.15.0/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.14.0](/python/docs/reference/recaptchaenterprise/1.14.0/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.13.0](/python/docs/reference/recaptchaenterprise/1.13.0/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.12.1](/python/docs/reference/recaptchaenterprise/1.12.1/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.11.1](/python/docs/reference/recaptchaenterprise/1.11.1/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.10.0](/python/docs/reference/recaptchaenterprise/1.10.0/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.9.0](/python/docs/reference/recaptchaenterprise/1.9.0/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.8.3](/python/docs/reference/recaptchaenterprise/1.8.3/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.7.1](/python/docs/reference/recaptchaenterprise/1.7.1/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.6.1](/python/docs/reference/recaptchaenterprise/1.6.1/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.5.0](/python/docs/reference/recaptchaenterprise/1.5.0/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.4.1](/python/docs/reference/recaptchaenterprise/1.4.1/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.3.1](/python/docs/reference/recaptchaenterprise/1.3.1/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.2.0](/python/docs/reference/recaptchaenterprise/1.2.0/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.1.2](/python/docs/reference/recaptchaenterprise/1.1.2/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [1.0.0](/python/docs/reference/recaptchaenterprise/1.0.0/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [0.4.2](/python/docs/reference/recaptchaenterprise/0.4.2/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [0.3.3](/python/docs/reference/recaptchaenterprise/0.3.3/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [0.2.1](/python/docs/reference/recaptchaenterprise/0.2.1/google.cloud.recaptchaenterprise_v1.types.TransactionData)\n- [0.1.0](/python/docs/reference/recaptchaenterprise/0.1.0/google.cloud.recaptchaenterprise_v1.types.TransactionData) \n\n TransactionData(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nTransaction data associated with a payment protected by\nreCAPTCHA Enterprise.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e\n\nClasses\n-------\n\n### Address\n\n Address(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nStructured address format for billing and shipping addresses.\n\n### GatewayInfo\n\n GatewayInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nDetails about the transaction from the gateway.\n\n### Item\n\n Item(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nLine items being purchased in this transaction.\n\n### User\n\n User(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nDetails about a user's account involved in the transaction."]]