Specifies the fields required to complete a checkout with a tokenized payment.
More...
|
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" |
|
|
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...
|
|
|
void | Set (string key, object value) |
|
object | Get (string key) |
|
Specifies the fields required to complete a checkout with a tokenized payment.
◆ 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
-
amount | The amount of the payment. |
idempotencyKey | 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. |
billingAddress | The billing address for the payment. |
type | The type of payment token. |
paymentData | A simple string or JSON containing the required payment data for the tokenized payment. |
test | Executes the payment in test mode if possible. Defaults to false . |
identifier | Public Hash Key used for AndroidPay payments only. |
◆ TokenizedPaymentInput() [2/2]
Shopify.Unity.TokenizedPaymentInput.TokenizedPaymentInput |
( |
Dictionary< string, object > |
dataJSON | ) |
|
|
inline |
- Parameters
-
amount | The amount of the payment. |
idempotencyKey | 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. |
billingAddress | The billing address for the payment. |
type | The type of payment token. |
paymentData | A simple string or JSON containing the required payment data for the tokenized payment. |
test | Executes the payment in test mode if possible. Defaults to false . |
identifier | Public Hash Key used for AndroidPay payments only. |
◆ amount
decimal Shopify.Unity.TokenizedPaymentInput.amount |
|
getset |
The amount of the payment.
◆ billingAddress
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:
- Assets/Shopify/Unity/Generated/TokenizedPaymentInput.cs