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.
Implements
IMessageTransactionData, IEquatableTransactionData, IDeepCloneableTransactionData, IBufferMessage, IMessageNamespace
Google.Cloud.RecaptchaEnterprise.V1Assembly
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; }
Address associated with the payment method when applicable.
Property Value | |
---|---|
Type | Description |
TransactionDataTypesAddress |
CardBin
public string CardBin { get; set; }
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; }
The last four digits of the card.
Property Value | |
---|---|
Type | Description |
string |
CurrencyCode
public string CurrencyCode { get; set; }
The currency code in ISO-4217 format.
Property Value | |
---|---|
Type | Description |
string |
GatewayInfo
public TransactionData.Types.GatewayInfo GatewayInfo { get; set; }
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; }
Items purchased in this transaction.
Property Value | |
---|---|
Type | Description |
RepeatedFieldTransactionDataTypesItem |
Merchants
public RepeatedField<TransactionData.Types.User> Merchants { get; }
Information about the user or users fulfilling the transaction.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
string |
ShippingAddress
public TransactionData.Types.Address ShippingAddress { get; set; }
Destination address if this transaction involves shipping a physical item.
Property Value | |
---|---|
Type | Description |
TransactionDataTypesAddress |
ShippingValue
public double ShippingValue { get; set; }
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; }
Information about the user paying/initiating the transaction.
Property Value | |
---|---|
Type | Description |
TransactionDataTypesUser |
Value
public double Value { get; set; }
The decimal value of the transaction in the specified currency.
Property Value | |
---|---|
Type | Description |
double |