2.21.0 (latest) 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0

    public sealed class TransactionData : IMessage<TransactionData>, IEquatable<TransactionData>, IDeepCloneable<TransactionData>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud reCAPTCHA Enterprise v1 API class TransactionData.

Transaction data associated with a payment protected by reCAPTCHA Enterprise.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> TransactionData

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[TransactionData](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.TransactionData.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TransactionData](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.TransactionData.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[TransactionData](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.TransactionData.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.RecaptchaEnterprise.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.md.txt)

## Assembly

Google.Cloud.RecaptchaEnterprise.V1.dll

## Constructors

### TransactionData()

    public TransactionData()

### TransactionData(TransactionData)

    public TransactionData(TransactionData other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `TransactionData` |

## Properties

### BillingAddress

    public TransactionData.Types.Address BillingAddress { get; set; }

Optional. Address associated with the payment method when applicable.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TransactionDataTypesAddress` |   |

### CardBin

    public string CardBin { get; set; }

Optional. The Bank Identification Number - generally the first 6 or 8
digits of the card.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### CardLastFour

    public string CardLastFour { get; set; }

Optional. The last four digits of the card.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### CurrencyCode

    public string CurrencyCode { get; set; }

Optional. The currency code in ISO-4217 format.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### GatewayInfo

    public TransactionData.Types.GatewayInfo GatewayInfo { get; set; }

Optional. Information about the payment gateway's response to the
transaction.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TransactionDataTypesGatewayInfo` |   |

### HasTransactionId

    public bool HasTransactionId { get; }

Gets whether the "transaction_id" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Items

    public RepeatedField<TransactionData.Types.Item> Items { get; }

Optional. Items purchased in this transaction.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldTransactionDataTypesItem` |   |

### Merchants

    public RepeatedField<TransactionData.Types.User> Merchants { get; }

Optional. Information about the user or users fulfilling the transaction.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldTransactionDataTypesUser` |   |

### PaymentMethod

    public string PaymentMethod { get; set; }

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)

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ShippingAddress

    public TransactionData.Types.Address ShippingAddress { get; set; }

Optional. Destination address if this transaction involves shipping a
physical item.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TransactionDataTypesAddress` |   |

### ShippingValue

    public double ShippingValue { get; set; }

Optional. The value of shipping in the specified currency. 0 for free or no
shipping.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `double` |   |

### TransactionId

    public string TransactionId { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### User

    public TransactionData.Types.User User { get; set; }

Optional. Information about the user paying/initiating the transaction.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TransactionDataTypesUser` |   |

### Value

    public double Value { get; set; }

Optional. The decimal value of the transaction in the specified currency.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `double` |   |