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

Specifies the fields required to complete a checkout with a Shopify vaulted credit card payment. More...

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

Public Member Functions

 CreditCardPaymentInput (decimal amount, string idempotencyKey, MailingAddressInput billingAddress, string vaultId, bool? test=null)
 
 CreditCardPaymentInput (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 vaultIdFieldKey = "vaultId"
 
const string testFieldKey = "test"
 

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 vaultId [get, set]
 The ID returned by Shopify's Card Vault. More...
 
bool? test [get, set]
 Executes the payment in test mode if possible. Defaults to false. 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 Shopify vaulted credit card payment.

Constructor & Destructor Documentation

◆ CreditCardPaymentInput() [1/2]

Shopify.Unity.CreditCardPaymentInput.CreditCardPaymentInput ( decimal  amount,
string  idempotencyKey,
MailingAddressInput  billingAddress,
string  vaultId,
bool?  test = 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.
vaultIdThe ID returned by Shopify's Card Vault.
testExecutes the payment in test mode if possible. Defaults to false.

◆ CreditCardPaymentInput() [2/2]

Shopify.Unity.CreditCardPaymentInput.CreditCardPaymentInput ( 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.
vaultIdThe ID returned by Shopify's Card Vault.
testExecutes the payment in test mode if possible. Defaults to false.

Property Documentation

◆ amount

decimal Shopify.Unity.CreditCardPaymentInput.amount
getset

The amount of the payment.

◆ billingAddress

MailingAddressInput Shopify.Unity.CreditCardPaymentInput.billingAddress
getset

The billing address for the payment.

◆ idempotencyKey

string Shopify.Unity.CreditCardPaymentInput.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.

◆ test

bool? Shopify.Unity.CreditCardPaymentInput.test
getset

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

◆ vaultId

string Shopify.Unity.CreditCardPaymentInput.vaultId
getset

The ID returned by Shopify's Card Vault.


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