public class PaymentLinkRequest extends Object implements ITimeoutRequest, ICoreRequest, IRequestAmount, ITerminalReference
| Constructor and Description |
|---|
PaymentLinkRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAmount()
Gets the requested amount.
|
String |
getCallbackUrl()
Gets optional callback url to which transaction responses for this link will be
posted.
|
String |
getCryptocurrency()
Gets that the transaction should be a cryptocurrency transaction.
|
String |
getCryptoNetwork()
Gets an optional parameter that can be used to force a crypto transaction onto a
level one or level two network.
|
String |
getCryptoReceiveAddress()
Gets can be used to specify a specific receive address for a crypto transaction.
|
String |
getCurrencyCode()
Gets the transaction currency code.
|
Customer |
getCustomer()
Gets customer information.
|
String |
getDescription()
Gets description explaining the transaction for display to the user.
|
String |
getDestinationAccount()
Gets the settlement account for merchants with split settlements.
|
String |
getOrderRef()
Gets an identifier from an external point of sale system.
|
String |
getPaymentRequestLabel()
Gets can optionally add a label to the payment request if the target cryptocurrency
supports labels.
|
String |
getPaymentRequestMessage()
Gets can optionally add a message to the payment request if the target
cryptocurrency supports labels.
|
String |
getSubject()
Gets subject of the payment email.
|
String |
getTcAlias()
Gets an alias for a Terms and Conditions template configured in the BlockChyp
dashboard.
|
String |
getTcContent()
Gets the content of the terms and conditions that will be presented to the user.
|
String |
getTcName()
Gets the name of the Terms and Conditions the user is accepting.
|
String |
getTerminalName()
Gets the name of the target payment terminal.
|
int |
getTimeout()
Gets the request timeout in seconds.
|
TransactionDisplayTransaction |
getTransaction()
Gets transaction details for display on the payment email.
|
String |
getTransactionRef()
Gets a user-assigned reference that can be used to recall or reverse transactions.
|
boolean |
isAsync()
Gets defers the response to the transaction and returns immediately.
|
boolean |
isAutoSend()
Gets automatically send the link via an email.
|
boolean |
isCashDiscount()
Gets a flag that applies a discount to negate the surcharge for debit transactions
or other surcharge ineligible payment methods.
|
boolean |
isCashier()
Gets flags the payment link as cashier facing.
|
boolean |
isEnroll()
Gets that the payment method should be added to the token vault alongside the
authorization.
|
boolean |
isEnrollOnly()
Gets that the link should be used to enroll a token only.
|
boolean |
isForce()
Gets override any in-progress transactions.
|
boolean |
isQueue()
Gets adds the transaction to the queue and returns immediately.
|
boolean |
isSurcharge()
Gets a flag to add a surcharge to the transaction to cover credit card fees, if
permitted.
|
boolean |
isTaxExempt()
Gets that the request is tax exempt.
|
boolean |
isTest()
Gets whether or not to route transaction to the test gateway.
|
boolean |
isWaitForRemovedCard()
Gets whether or not the request should block until all cards have been removed from
the card reader.
|
void |
setAmount(String value)
Sets the requested amount.
|
void |
setAsync(boolean value)
Sets defers the response to the transaction and returns immediately.
|
void |
setAutoSend(boolean value)
Sets automatically send the link via an email.
|
void |
setCallbackUrl(String value)
Sets optional callback url to which transaction responses for this link will be
posted.
|
void |
setCashDiscount(boolean value)
Sets a flag that applies a discount to negate the surcharge for debit transactions
or other surcharge ineligible payment methods.
|
void |
setCashier(boolean value)
Sets flags the payment link as cashier facing.
|
void |
setCryptocurrency(String value)
Sets that the transaction should be a cryptocurrency transaction.
|
void |
setCryptoNetwork(String value)
Sets an optional parameter that can be used to force a crypto transaction onto a
level one or level two network.
|
void |
setCryptoReceiveAddress(String value)
Sets can be used to specify a specific receive address for a crypto transaction.
|
void |
setCurrencyCode(String value)
Sets the transaction currency code.
|
void |
setCustomer(Customer value)
Sets customer information.
|
void |
setDescription(String value)
Sets description explaining the transaction for display to the user.
|
void |
setDestinationAccount(String value)
Sets the settlement account for merchants with split settlements.
|
void |
setEnroll(boolean value)
Sets that the payment method should be added to the token vault alongside the
authorization.
|
void |
setEnrollOnly(boolean value)
Sets that the link should be used to enroll a token only.
|
void |
setForce(boolean value)
Sets override any in-progress transactions.
|
void |
setOrderRef(String value)
Sets an identifier from an external point of sale system.
|
void |
setPaymentRequestLabel(String value)
Sets can optionally add a label to the payment request if the target cryptocurrency
supports labels.
|
void |
setPaymentRequestMessage(String value)
Sets can optionally add a message to the payment request if the target
cryptocurrency supports labels.
|
void |
setQueue(boolean value)
Sets adds the transaction to the queue and returns immediately.
|
void |
setSubject(String value)
Sets subject of the payment email.
|
void |
setSurcharge(boolean value)
Sets a flag to add a surcharge to the transaction to cover credit card fees, if
permitted.
|
void |
setTaxExempt(boolean value)
Sets that the request is tax exempt.
|
void |
setTcAlias(String value)
Sets an alias for a Terms and Conditions template configured in the BlockChyp
dashboard.
|
void |
setTcContent(String value)
Sets the content of the terms and conditions that will be presented to the user.
|
void |
setTcName(String value)
Sets the name of the Terms and Conditions the user is accepting.
|
void |
setTerminalName(String value)
Sets the name of the target payment terminal.
|
void |
setTest(boolean value)
Sets whether or not to route transaction to the test gateway.
|
void |
setTimeout(int value)
Sets the request timeout in seconds.
|
void |
setTransaction(TransactionDisplayTransaction value)
Sets transaction details for display on the payment email.
|
void |
setTransactionRef(String value)
Sets a user-assigned reference that can be used to recall or reverse transactions.
|
void |
setWaitForRemovedCard(boolean value)
Sets whether or not the request should block until all cards have been removed from
the card reader.
|
public void setTimeout(int value)
value - the request timeout in seconds.public int getTimeout()
getTimeout in interface ITimeoutRequestpublic void setTest(boolean value)
value - whether or not to route transaction to the test gateway.public boolean isTest()
isTest in interface ITimeoutRequestpublic void setTransactionRef(String value)
value - a user-assigned reference that can be used to recall or reverse
transactions.public String getTransactionRef()
getTransactionRef in interface ICoreRequestpublic void setAsync(boolean value)
value - defers the response to the transaction and returns immediately.
Callers should retrive the transaction result using the Transaction Status API.public boolean isAsync()
isAsync in interface ICoreRequestpublic void setQueue(boolean value)
value - adds the transaction to the queue and returns immediately. Callers
should retrive the transaction result using the Transaction Status API.public boolean isQueue()
isQueue in interface ICoreRequestpublic void setWaitForRemovedCard(boolean value)
value - whether or not the request should block until all cards have been
removed from the card reader.public boolean isWaitForRemovedCard()
isWaitForRemovedCard in interface ICoreRequestpublic void setForce(boolean value)
value - override any in-progress transactions.public boolean isForce()
isForce in interface ICoreRequestpublic void setOrderRef(String value)
value - an identifier from an external point of sale system.public String getOrderRef()
getOrderRef in interface ICoreRequestpublic void setDestinationAccount(String value)
value - the settlement account for merchants with split settlements.public String getDestinationAccount()
getDestinationAccount in interface ICoreRequestpublic void setCurrencyCode(String value)
value - the transaction currency code.public String getCurrencyCode()
getCurrencyCode in interface IRequestAmountpublic void setAmount(String value)
value - the requested amount.public String getAmount()
getAmount in interface IRequestAmountpublic void setTaxExempt(boolean value)
value - that the request is tax exempt. Only required for tax exempt level 2
processing.public boolean isTaxExempt()
isTaxExempt in interface IRequestAmountpublic void setSurcharge(boolean value)
value - a flag to add a surcharge to the transaction to cover credit card fees,
if permitted.public boolean isSurcharge()
isSurcharge in interface IRequestAmountpublic void setCashDiscount(boolean value)
value - a flag that applies a discount to negate the surcharge for debit
transactions or other surcharge ineligible payment methods.public boolean isCashDiscount()
isCashDiscount in interface IRequestAmountpublic void setTerminalName(String value)
value - the name of the target payment terminal.public String getTerminalName()
getTerminalName in interface ITerminalReferencepublic void setAutoSend(boolean value)
value - automatically send the link via an email.public boolean isAutoSend()
public void setEnroll(boolean value)
value - that the payment method should be added to the token vault alongside
the authorization.public boolean isEnroll()
public void setEnrollOnly(boolean value)
value - that the link should be used to enroll a token only. Can only be used in
cashier mode.public boolean isEnrollOnly()
public void setCashier(boolean value)
value - flags the payment link as cashier facing.public boolean isCashier()
public void setDescription(String value)
value - description explaining the transaction for display to the user.public String getDescription()
public void setSubject(String value)
value - subject of the payment email.public String getSubject()
public void setTransaction(TransactionDisplayTransaction value)
value - transaction details for display on the payment email.public TransactionDisplayTransaction getTransaction()
public void setCustomer(Customer value)
value - customer information.public Customer getCustomer()
public void setCallbackUrl(String value)
value - optional callback url to which transaction responses for this link
will be posted.public String getCallbackUrl()
public void setTcAlias(String value)
value - an alias for a Terms and Conditions template configured in the
BlockChyp dashboard.public String getTcAlias()
public void setTcName(String value)
value - the name of the Terms and Conditions the user is accepting.public String getTcName()
public void setTcContent(String value)
value - the content of the terms and conditions that will be presented to the
user.public String getTcContent()
public void setCryptocurrency(String value)
value - that the transaction should be a cryptocurrency transaction. Value
should be a crypto currency code (ETH, BTC) or ANY to prompt the user to choose from
supported cryptocurrencies.public String getCryptocurrency()
public void setCryptoNetwork(String value)
value - an optional parameter that can be used to force a crypto transaction
onto a level one or level two network. Valid values are L1 and L2. Defaults to L1.public String getCryptoNetwork()
public void setCryptoReceiveAddress(String value)
value - can be used to specify a specific receive address for a crypto
transaction. Disabled by default. This should only be used by sophisticated users
with access to properly configured hot wallets.public String getCryptoReceiveAddress()
public void setPaymentRequestLabel(String value)
value - can optionally add a label to the payment request if the target
cryptocurrency supports labels. Defaults to the merchant's DBA Name.public String getPaymentRequestLabel()
public void setPaymentRequestMessage(String value)
value - can optionally add a message to the payment request if the target
cryptocurrency supports labels. Defaults to empty.public String getPaymentRequestMessage()
Copyright © 2022 BlockChyp, Inc.. All rights reserved.