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

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

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

Public Member Functions

 TokenizedPaymentInput (decimal amount, string idempotencyKey, MailingAddressInput billingAddress, string type, string paymentData, bool? test=null, string identifier=null)
 
 TokenizedPaymentInput (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 amountFieldKey = "amount"
 
const string idempotencyKeyFieldKey = "idempotencyKey"
 
const string billingAddressFieldKey = "billingAddress"
 
const string typeFieldKey = "type"
 
const string paymentDataFieldKey = "paymentData"
 
const string testFieldKey = "test"
 
const string identifierFieldKey = "identifier"
 

Properties

decimal amount [get, set]
 The amount 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 type [get, set]
 The type of payment token. More...
 
string paymentData [get, set]
 A simple string or JSON containing the required payment data for the tokenized payment. More...
 
bool? test [get, set]
 Executes the payment in test mode if possible. Defaults to false. More...
 
string identifier [get, set]
 Public Hash Key used for AndroidPay payments only. 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

◆ TokenizedPaymentInput() [1/2]

Shopify.Unity.TokenizedPaymentInput.TokenizedPaymentInput ( decimal  amount,
string  idempotencyKey,
MailingAddressInput  billingAddress,
string  type,
string  paymentData,
bool?  test = null,
string  identifier = null 
)
inline
Parameters
amountThe amount 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.
typeThe type of payment token.
paymentDataA simple string or JSON containing the required payment data for the tokenized payment.
testExecutes the payment in test mode if possible. Defaults to false.
identifierPublic Hash Key used for AndroidPay payments only.

◆ TokenizedPaymentInput() [2/2]

Shopify.Unity.TokenizedPaymentInput.TokenizedPaymentInput ( Dictionary< string, object >  dataJSON)
inline
Parameters
amountThe amount 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.
typeThe type of payment token.
paymentDataA simple string or JSON containing the required payment data for the tokenized payment.
testExecutes the payment in test mode if possible. Defaults to false.
identifierPublic Hash Key used for AndroidPay payments only.

Property Documentation

◆ amount

decimal Shopify.Unity.TokenizedPaymentInput.amount
getset

The amount of the payment.

◆ billingAddress

MailingAddressInput Shopify.Unity.TokenizedPaymentInput.billingAddress
getset

The billing address for the payment.

◆ idempotencyKey

string Shopify.Unity.TokenizedPaymentInput.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.TokenizedPaymentInput.identifier
getset

Public Hash Key used for AndroidPay payments only.

◆ paymentData

string Shopify.Unity.TokenizedPaymentInput.paymentData
getset

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

◆ test

bool? Shopify.Unity.TokenizedPaymentInput.test
getset

Executes the payment in test mode if possible. Defaults to false.

◆ type

string Shopify.Unity.TokenizedPaymentInput.type
getset

The type of payment token.


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