new TransactionRequest()
- Source:
Extends
Methods
(static) TransactionRequest#getAllowOfflinePayment() → {Boolean|Null}
Get the field value
If true then offline payments can be accepted
- Source:
Returns:
- Type
- Boolean | Null
(static) TransactionRequest#getApproveOfflinePaymentWithoutPrompt() → {Boolean|Null}
Get the field value
If true then offline payments will be approved without a prompt
- Source:
Returns:
- Type
- Boolean | Null
(static) TransactionRequest#getAutoAcceptSignature() → {Boolean|Null}
Get the field value
Do not show/send signature verification challenges
- Source:
Returns:
- Type
- Boolean | Null
(static) TransactionRequest#getDisableCashback() → {Boolean|Null}
Get the field value
If true, do not allow cash back
- Source:
Returns:
- Type
- Boolean | Null
(static) TransactionRequest#getForceOfflinePayment() → {Boolean|Null}
Get the field value
If true then the payment will be taken offline
- Source:
Returns:
- Type
- Boolean | Null
(static) TransactionRequest#getSignatureEntryLocation() → {payments.DataEntryLocation|Null}
Get the field value
Where the signature should be obtained from (paper, screen...etc)
- Source:
Returns:
- Type
- payments.DataEntryLocation | Null
(static) TransactionRequest#getSignatureThreshold() → {Number}
Get the field value
If the amount is equal to or greater than this amount, then a signature should be obtained
- Source:
Returns:
must be a long integer
- Type
- Number
(static) TransactionRequest#getTaxAmount() → {Number}
Get the field value
Amount paid in taxes
- Source:
Returns:
must be a long integer
- Type
- Number
(static) TransactionRequest#getTippableAmount() → {Number}
Get the field value
The total amount used when calculating tips
- Source:
Returns:
must be a long integer
- Type
- Number
(static) TransactionRequest#getTipSuggestions() → {Array.<merchant.TipSuggestion>}
Get the field value
Custom Tip Suggestions that can be set per transaction
- Source:
Returns:
An array of
- Type
- Array.<merchant.TipSuggestion>
(static) TransactionRequest#setAllowOfflinePayment(allowOfflinePayment)
Set the field value
If true then offline payments can be accepted
Parameters:
Name | Type | Description |
---|---|---|
allowOfflinePayment |
Boolean | Null |
- Source:
(static) TransactionRequest#setApproveOfflinePaymentWithoutPrompt(approveOfflinePaymentWithoutPrompt)
Set the field value
If true then offline payments will be approved without a prompt
Parameters:
Name | Type | Description |
---|---|---|
approveOfflinePaymentWithoutPrompt |
Boolean | Null |
- Source:
(static) TransactionRequest#setAutoAcceptSignature(autoAcceptSignature)
Set the field value
Do not show/send signature verification challenges
Parameters:
Name | Type | Description |
---|---|---|
autoAcceptSignature |
Boolean | Null |
- Source:
(static) TransactionRequest#setDisableCashback(disableCashback)
Set the field value
If true, do not allow cash back
Parameters:
Name | Type | Description |
---|---|---|
disableCashback |
Boolean | Null |
- Source:
(static) TransactionRequest#setForceOfflinePayment(forceOfflinePayment)
Set the field value
If true then the payment will be taken offline
Parameters:
Name | Type | Description |
---|---|---|
forceOfflinePayment |
Boolean | Null |
- Source:
(static) TransactionRequest#setSignatureEntryLocation(signatureEntryLocation)
Set the field value
Where the signature should be obtained from (paper, screen...etc)
Parameters:
Name | Type | Description |
---|---|---|
signatureEntryLocation |
payments.DataEntryLocation | Null |
- Source:
(static) TransactionRequest#setSignatureThreshold(signatureThreshold)
Set the field value
If the amount is equal to or greater than this amount, then a signature should be obtained
Parameters:
Name | Type | Description |
---|---|---|
signatureThreshold |
Number | must be a long integer |
- Source:
(static) TransactionRequest#setTaxAmount(taxAmount)
Set the field value
Amount paid in taxes
Parameters:
Name | Type | Description |
---|---|---|
taxAmount |
Number | must be a long integer |
- Source:
(static) TransactionRequest#setTippableAmount(tippableAmount)
Set the field value
The total amount used when calculating tips
Parameters:
Name | Type | Description |
---|---|---|
tippableAmount |
Number | must be a long integer |
- Source:
(static) TransactionRequest#setTipSuggestions(tipSuggestions)
Set the field value
Custom Tip Suggestions that can be set per transaction
Parameters:
Name | Type | Description |
---|---|---|
tipSuggestions |
Array.<merchant.TipSuggestion> | An array of |
- Source: