public class PaymentLinkRequest extends Object implements 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 |
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 |
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 the transaction reference string assigned to the transaction request.
|
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 |
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.
|
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 |
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 |
setOrderRef(String value)
Sets an identifier from an external point of sale system.
|
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 the transaction reference string assigned to the transaction request.
|
public void setTransactionRef(String value)
value - the transaction reference string assigned to the transaction
request. If no transaction ref was assiged on the request, then the gateway will
randomly generate one.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 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 setTest(boolean value)
value - whether or not to route transaction to the test gateway.public boolean isTest()
isTest in interface ICoreRequestpublic void setTimeout(int value)
value - the request timeout in seconds.public int getTimeout()
getTimeout 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 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()
Copyright © 2020 BlockChyp, Inc.. All rights reserved.