Google Cloud reCAPTCHA Enterprise v1 API - Class TransactionData (2.5.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. All fields are optional.

Inheritance

object > TransactionData

Namespace

Google.Cloud.RecaptchaEnterprise.V1

Assembly

Google.Cloud.RecaptchaEnterprise.V1.dll

Constructors

TransactionData()

public TransactionData()

TransactionData(TransactionData)

public TransactionData(TransactionData other)
Parameter
NameDescription
otherTransactionData

Properties

BillingAddress

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

Address associated with the payment method when applicable.

Property Value
TypeDescription
TransactionDataTypesAddress

CardBin

public string CardBin { get; set; }

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

Property Value
TypeDescription
string

CardLastFour

public string CardLastFour { get; set; }

The last four digits of the card.

Property Value
TypeDescription
string

CurrencyCode

public string CurrencyCode { get; set; }

The currency code in ISO-4217 format.

Property Value
TypeDescription
string

GatewayInfo

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

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

Property Value
TypeDescription
TransactionDataTypesGatewayInfo

HasTransactionId

public bool HasTransactionId { get; }

Gets whether the "transaction_id" field is set

Property Value
TypeDescription
bool

Items

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

Items purchased in this transaction.

Property Value
TypeDescription
RepeatedFieldTransactionDataTypesItem

Merchants

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

Information about the user or users fulfilling the transaction.

Property Value
TypeDescription
RepeatedFieldTransactionDataTypesUser

PaymentMethod

public string PaymentMethod { get; set; }

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
TypeDescription
string

ShippingAddress

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

Destination address if this transaction involves shipping a physical item.

Property Value
TypeDescription
TransactionDataTypesAddress

ShippingValue

public double ShippingValue { get; set; }

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

Property Value
TypeDescription
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
TypeDescription
string

User

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

Information about the user paying/initiating the transaction.

Property Value
TypeDescription
TransactionDataTypesUser

Value

public double Value { get; set; }

The decimal value of the transaction in the specified currency.

Property Value
TypeDescription
double