Shopify SDK for Unity
Public Member Functions | Static Public Attributes | Properties | List of all members
Shopify.Unity.TokenizedPaymentInputV2 Class Reference

Specifies the fields required to complete a checkout with a tokenized payment. More...

Inheritance diagram for Shopify.Unity.TokenizedPaymentInputV2:
Shopify.Unity.SDK.InputBase

Public Member Functions

 TokenizedPaymentInputV2 (MoneyInput paymentAmount, string idempotencyKey, MailingAddressInput billingAddress, string paymentData, string type, bool? test=null, string identifier=null)
 
 TokenizedPaymentInputV2 (Dictionary< string, object > dataJSON)
 
- Public Member Functions inherited from Shopify.Unity.SDK.InputBase
override string ToString ()
 Returns a string representing a GraphQL input object. More...
 

Static Public Attributes

const string paymentAmountFieldKey = "paymentAmount"
 
const string idempotencyKeyFieldKey = "idempotencyKey"
 
const string billingAddressFieldKey = "billingAddress"
 
const string paymentDataFieldKey = "paymentData"
 
const string testFieldKey = "test"
 
const string identifierFieldKey = "identifier"
 
const string typeFieldKey = "type"
 

Properties

MoneyInput paymentAmount [get, set]
 The amount and currency of the payment. More...
 
string idempotencyKey [get, set]
 A unique client generated key used to avoid duplicate charges. When a duplicate payment is found, the original is returned instead of creating a new one. More...
 
MailingAddressInput billingAddress [get, set]
 The billing address for the payment. More...
 
string paymentData [get, set]
 A simple string or JSON containing the required payment data for the tokenized payment. More...
 
bool? test [get, set]
 Whether to execute the payment in test mode, if possible. Test mode is not supported in production stores. Defaults to false. More...
 
string identifier [get, set]
 Public Hash Key used for AndroidPay payments only. More...
 
string type [get, set]
 The type of payment token. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Shopify.Unity.SDK.InputBase
void Set (string key, object value)
 
object Get (string key)
 

Detailed Description

Specifies the fields required to complete a checkout with a tokenized payment.

Constructor & Destructor Documentation

◆ TokenizedPaymentInputV2() [1/2]

Shopify.Unity.TokenizedPaymentInputV2.TokenizedPaymentInputV2 ( MoneyInput  paymentAmount,
string  idempotencyKey,
MailingAddressInput  billingAddress,
string  paymentData,
string  type,
bool?  test = null,
string  identifier = null 
)
inline
Parameters
paymentAmountThe amount and currency of the payment.
idempotencyKeyA unique client generated key used to avoid duplicate charges. When a duplicate payment is found, the original is returned instead of creating a new one.
billingAddressThe billing address for the payment.
paymentDataA simple string or JSON containing the required payment data for the tokenized payment.
testWhether to execute the payment in test mode, if possible. Test mode is not supported in production stores. Defaults to false.
identifierPublic Hash Key used for AndroidPay payments only.
typeThe type of payment token.

◆ TokenizedPaymentInputV2() [2/2]

Shopify.Unity.TokenizedPaymentInputV2.TokenizedPaymentInputV2 ( Dictionary< string, object >  dataJSON)
inline
Parameters
paymentAmountThe amount and currency of the payment.
idempotencyKeyA unique client generated key used to avoid duplicate charges. When a duplicate payment is found, the original is returned instead of creating a new one.
billingAddressThe billing address for the payment.
paymentDataA simple string or JSON containing the required payment data for the tokenized payment.
testWhether to execute the payment in test mode, if possible. Test mode is not supported in production stores. Defaults to false.
identifierPublic Hash Key used for AndroidPay payments only.
typeThe type of payment token.

Property Documentation

◆ billingAddress

MailingAddressInput Shopify.Unity.TokenizedPaymentInputV2.billingAddress
getset

The billing address for the payment.

◆ idempotencyKey

string Shopify.Unity.TokenizedPaymentInputV2.idempotencyKey
getset

A unique client generated key used to avoid duplicate charges. When a duplicate payment is found, the original is returned instead of creating a new one.

◆ identifier

string Shopify.Unity.TokenizedPaymentInputV2.identifier
getset

Public Hash Key used for AndroidPay payments only.

◆ paymentAmount

MoneyInput Shopify.Unity.TokenizedPaymentInputV2.paymentAmount
getset

The amount and currency of the payment.

◆ paymentData

string Shopify.Unity.TokenizedPaymentInputV2.paymentData
getset

A simple string or JSON containing the required payment data for the tokenized payment.

◆ test

bool? Shopify.Unity.TokenizedPaymentInputV2.test
getset

Whether to execute the payment in test mode, if possible. Test mode is not supported in production stores. Defaults to false.

◆ type

string Shopify.Unity.TokenizedPaymentInputV2.type
getset

The type of payment token.


The documentation for this class was generated from the following file: