public class PaymentOptions
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
PaymentOptions() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAppCallbackScheme() |
ByjunoPaymentInfo |
getByjunoPaymentInfo()
Returns the Byjuno payment info.
|
Customer |
getCustomer()
Returns the customer info object.
|
java.lang.String |
getEasypayDescription()
Returns the Easypay description.
|
java.lang.String |
getEasypayPaymentInfo()
Returns the Easypay payment info.
|
java.lang.String |
getEasypayTitle()
Returns the Easypay title.
|
GooglePayConfig |
getGooglePayConfig()
Returns the Google Pay config.
|
java.util.Map<java.lang.String,java.lang.String> |
getMerchantProperties()
Getter to add additional key-value properties sent along with the payment request and posted to the merchant's PostURL.
|
java.lang.String |
getPaysafecardMerchantClientId()
Returns the id for identifying a customer of a Paysafecard transaction.
|
SamsungPayConfig |
getSamsungPayConfig()
Returns the Samsung Pay config.
|
SwissBillingPaymentInfo |
getSwissBillingPaymentInfo()
Returns the SwissBilling payment info.
|
SwissPassPaymentInfo |
getSwissPassPaymentInfo()
Returns the SwissPass payment info.
|
ch.twint.payment.sdk.TwintEnvironment |
getTWINTEnvironment()
Returns the environment of the TWINT App that is used.
|
boolean |
isAutoSettlement()
Returns the auto settlement option.
|
boolean |
isCertificatePinning()
Returns whether certificate pinning is enabled.
|
boolean |
isDisplayShippingDetails()
Returns the PayPal shipping details display option.
|
boolean |
isRecurringPayment()
Returns the recurring payment option.
|
protected boolean |
isSkipAuthorizationCompletion()
Returns whether the transaction's authorization step should be omitted.
|
void |
setAppCallbackScheme(java.lang.String appCallbackScheme) |
void |
setAutoSettlement(boolean autoSettlement)
Sets the the auto settlement option.
|
void |
setByjunoPaymentInfo(ByjunoPaymentInfo paymentInfo)
Sets the optional payment information for a Byjuno transaction.
|
void |
setCertificatePinning(boolean pinningEnabled)
Sets the certificate pinning option.
|
void |
setCustomer(Customer customer)
Sets the customer info object.
|
void |
setDisplayShippingDetails(boolean displayShippingDetails)
Sets the PayPal shipping details display option.
|
void |
setEasypayDescription(java.lang.String description)
Sets the description for Easypay.
|
void |
setEasypayPaymentInfo(java.lang.String paymentInfo)
Sets payment info for Easypay.
|
void |
setEasypayTitle(java.lang.String title)
Sets the title for Easypay.
|
void |
setGooglePayConfig(GooglePayConfig googlePayConfig)
Sets the configuration required for a Google Pay transaction.
|
void |
setPaysafecardMerchantClientId(java.lang.String paysafecardMerchantClientId)
Sets the id for identifying a customer of a Paysafecard transaction, i.e.
|
void |
setRecurringPayment(boolean recurringPayment)
Sets the the recurring payment option.
|
void |
setSamsungPayConfig(SamsungPayConfig samsungPayConfig)
Sets the configuration required for a Samsung Pay transaction.
|
void |
setSkipAuthorizationCompletion(boolean isSkip)
Sets whether the transaction's authorization completion step should be omitted.
|
void |
setSwissBillingPaymentInfo(SwissBillingPaymentInfo paymentInfo)
Sets the optional payment information for a SwissBilling transaction.
|
void |
setSwissPassPaymentInfo(SwissPassPaymentInfo paymentInfo)
Sets the optional payment information for a SwissPass transaction.
|
void |
setTWINTEnvironment(ch.twint.payment.sdk.TwintEnvironment TWINTEnvironment)
Sets the environment of the TWINT App that is used.
|
public java.lang.String getAppCallbackScheme()
public void setAppCallbackScheme(java.lang.String appCallbackScheme)
public java.lang.String getEasypayTitle()
public void setEasypayTitle(java.lang.String title)
title
- Easypay titlepublic java.lang.String getEasypayDescription()
public void setEasypayDescription(java.lang.String description)
description
- Easypay descriptionpublic java.lang.String getEasypayPaymentInfo()
public void setEasypayPaymentInfo(java.lang.String paymentInfo)
paymentInfo
- Easypay payment infopublic boolean isDisplayShippingDetails()
public void setDisplayShippingDetails(boolean displayShippingDetails)
displayShippingDetails
- true
if shipping details should be displayed,
false
otherwise. Default: true
.public boolean isRecurringPayment()
public void setRecurringPayment(boolean recurringPayment)
recurringPayment
- true
if payment should be executed in recurring
mode, returning an AliasPaymentMethod
on success,
false
false otherwise. Default:
false
.public boolean isAutoSettlement()
public void setAutoSettlement(boolean autoSettlement)
autoSettlement
- true
if settlement should take place immediately
upon successful authorization, false
if
transactions should not be settled automatically. Default:
false
.public boolean isCertificatePinning()
public void setCertificatePinning(boolean pinningEnabled)
Implementation uses SecureRandom
, make sure to patch your app if
you intend to use this feature on older devices. (See here for more information.)
Please note: Enabling this option will break your app in many corporate networks with anti-malware/-theft/-espionage SSL proxying.
pinningEnabled
- true
to enable pinning, false
otherwise. Default: false
.public void setSkipAuthorizationCompletion(boolean isSkip)
isSkip
- true
to skip authorization, false
otherwise.
Default: false
.public void setSwissBillingPaymentInfo(SwissBillingPaymentInfo paymentInfo)
paymentInfo
- Payment info for SwissBillingpublic SwissBillingPaymentInfo getSwissBillingPaymentInfo()
public void setByjunoPaymentInfo(ByjunoPaymentInfo paymentInfo)
paymentInfo
- Payment info for Byjunopublic ByjunoPaymentInfo getByjunoPaymentInfo()
public void setSwissPassPaymentInfo(SwissPassPaymentInfo paymentInfo)
paymentInfo
- Payment info for SwissPasspublic SwissPassPaymentInfo getSwissPassPaymentInfo()
public void setSamsungPayConfig(SamsungPayConfig samsungPayConfig)
samsungPayConfig
- Configuration for Samsung Pay.public SamsungPayConfig getSamsungPayConfig()
public void setGooglePayConfig(GooglePayConfig googlePayConfig)
googlePayConfig
- Configuration for Google Pay.public GooglePayConfig getGooglePayConfig()
public void setTWINTEnvironment(ch.twint.payment.sdk.TwintEnvironment TWINTEnvironment)
TWINTEnvironment
- Environment of TWINT Apppublic ch.twint.payment.sdk.TwintEnvironment getTWINTEnvironment()
public void setPaysafecardMerchantClientId(java.lang.String paysafecardMerchantClientId)
paysafecardMerchantClientId
- Id for identifying a customerpublic java.lang.String getPaysafecardMerchantClientId()
public java.util.Map<java.lang.String,java.lang.String> getMerchantProperties()
public void setCustomer(Customer customer)
customer
- The customer info object.public Customer getCustomer()
protected boolean isSkipAuthorizationCompletion()