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

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

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

Public Member Functions

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

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

◆ CreditCardPaymentInputV2() [1/2]

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

◆ CreditCardPaymentInputV2() [2/2]

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

Property Documentation

◆ billingAddress

MailingAddressInput Shopify.Unity.CreditCardPaymentInputV2.billingAddress
getset

The billing address for the payment.

◆ idempotencyKey

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

◆ paymentAmount

MoneyInput Shopify.Unity.CreditCardPaymentInputV2.paymentAmount
getset

The amount and currency of the payment.

◆ test

bool? Shopify.Unity.CreditCardPaymentInputV2.test
getset

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

◆ vaultId

string Shopify.Unity.CreditCardPaymentInputV2.vaultId
getset

The ID returned by Shopify's Card Vault.


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