Package com.onlinepayments.domain
Class MobilePaymentMethodSpecificInput
java.lang.Object
com.onlinepayments.domain.MobilePaymentMethodSpecificInput
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDetermines the type of the authorization that will be used.The payment data if you do the decryption of the encrypted payment data yourself.The payment data if we will do the decryption of the encrypted payment data.Ephemeral Key A unique generated key used by Apple to encrypt data.Object containing information specific to Google Pay.Payment product identifier - Please see Products documentation for a full overview of possible values.Public Key Hash A unique identifier to retrieve key used by Apple to encrypt information.true = the payment requires approval before the funds will be captured using the Approve payment or Capture payment API false = the payment does not require approval, and the funds will be captured automaticallyvoidsetAuthorizationMode(String value) Determines the type of the authorization that will be used.voidThe payment data if you do the decryption of the encrypted payment data yourself.voidsetEncryptedPaymentData(String value) The payment data if we will do the decryption of the encrypted payment data.voidsetEphemeralKey(String value) Ephemeral Key A unique generated key used by Apple to encrypt data.voidObject containing information specific to Google Pay.voidsetPaymentProductId(Integer value) Payment product identifier - Please see Products documentation for a full overview of possible values.voidsetPublicKeyHash(String value) Public Key Hash A unique identifier to retrieve key used by Apple to encrypt information.voidsetRequiresApproval(Boolean value) true = the payment requires approval before the funds will be captured using the Approve payment or Capture payment API false = the payment does not require approval, and the funds will be captured automaticallywithAuthorizationMode(String value) Determines the type of the authorization that will be used.The payment data if you do the decryption of the encrypted payment data yourself.withEncryptedPaymentData(String value) The payment data if we will do the decryption of the encrypted payment data.withEphemeralKey(String value) Ephemeral Key A unique generated key used by Apple to encrypt data.Object containing information specific to Google Pay.withPaymentProductId(Integer value) Payment product identifier - Please see Products documentation for a full overview of possible values.withPublicKeyHash(String value) Public Key Hash A unique identifier to retrieve key used by Apple to encrypt information.withRequiresApproval(Boolean value) true = the payment requires approval before the funds will be captured using the Approve payment or Capture payment API false = the payment does not require approval, and the funds will be captured automatically
-
Constructor Details
-
MobilePaymentMethodSpecificInput
public MobilePaymentMethodSpecificInput()
-
-
Method Details
-
getAuthorizationMode
Determines the type of the authorization that will be used. Allowed values:- FINAL_AUTHORIZATION - The payment creation results in an authorization that is ready for capture. Final authorizations can't be reversed and need to be captured for the full amount within 7 days.
- PRE_AUTHORIZATION - The payment creation results in a pre-authorization that is ready for capture. Pre-authortizations can be reversed and can be captured within 30 days. The capture amount can be lower than the authorized amount.
- SALE - The payment creation results in an authorization that is already captured at the moment of approval.
Only used with some acquirers, ignored for acquirers that do not support this. In case the acquirer does not allow this to be specified the authorizationMode is 'unspecified', which behaves similar to a final authorization.
-
setAuthorizationMode
Determines the type of the authorization that will be used. Allowed values:- FINAL_AUTHORIZATION - The payment creation results in an authorization that is ready for capture. Final authorizations can't be reversed and need to be captured for the full amount within 7 days.
- PRE_AUTHORIZATION - The payment creation results in a pre-authorization that is ready for capture. Pre-authortizations can be reversed and can be captured within 30 days. The capture amount can be lower than the authorized amount.
- SALE - The payment creation results in an authorization that is already captured at the moment of approval.
Only used with some acquirers, ignored for acquirers that do not support this. In case the acquirer does not allow this to be specified the authorizationMode is 'unspecified', which behaves similar to a final authorization.
-
withAuthorizationMode
Determines the type of the authorization that will be used. Allowed values:- FINAL_AUTHORIZATION - The payment creation results in an authorization that is ready for capture. Final authorizations can't be reversed and need to be captured for the full amount within 7 days.
- PRE_AUTHORIZATION - The payment creation results in a pre-authorization that is ready for capture. Pre-authortizations can be reversed and can be captured within 30 days. The capture amount can be lower than the authorized amount.
- SALE - The payment creation results in an authorization that is already captured at the moment of approval.
Only used with some acquirers, ignored for acquirers that do not support this. In case the acquirer does not allow this to be specified the authorizationMode is 'unspecified', which behaves similar to a final authorization.
-
getDecryptedPaymentData
The payment data if you do the decryption of the encrypted payment data yourself. -
setDecryptedPaymentData
The payment data if you do the decryption of the encrypted payment data yourself. -
withDecryptedPaymentData
The payment data if you do the decryption of the encrypted payment data yourself. -
getEncryptedPaymentData
The payment data if we will do the decryption of the encrypted payment data. Typically you'd use encryptedCustomerInput in the root of the create payment request to provide the encrypted payment data instead.- For Apple Pay, the encrypted payment data can be found in property data of the PKPayment.token.paymentData property.
-
setEncryptedPaymentData
The payment data if we will do the decryption of the encrypted payment data. Typically you'd use encryptedCustomerInput in the root of the create payment request to provide the encrypted payment data instead.- For Apple Pay, the encrypted payment data can be found in property data of the PKPayment.token.paymentData property.
-
withEncryptedPaymentData
The payment data if we will do the decryption of the encrypted payment data. Typically you'd use encryptedCustomerInput in the root of the create payment request to provide the encrypted payment data instead.- For Apple Pay, the encrypted payment data can be found in property data of the PKPayment.token.paymentData property.
-
getEphemeralKey
Ephemeral Key A unique generated key used by Apple to encrypt data. -
setEphemeralKey
Ephemeral Key A unique generated key used by Apple to encrypt data. -
withEphemeralKey
Ephemeral Key A unique generated key used by Apple to encrypt data. -
getPaymentProduct320SpecificInput
Object containing information specific to Google Pay. Required for payments with product 320. -
setPaymentProduct320SpecificInput
Object containing information specific to Google Pay. Required for payments with product 320. -
withPaymentProduct320SpecificInput
public MobilePaymentMethodSpecificInput withPaymentProduct320SpecificInput(MobilePaymentProduct320SpecificInput value) Object containing information specific to Google Pay. Required for payments with product 320. -
getPaymentProductId
Payment product identifier - Please see Products documentation for a full overview of possible values. -
setPaymentProductId
Payment product identifier - Please see Products documentation for a full overview of possible values. -
withPaymentProductId
Payment product identifier - Please see Products documentation for a full overview of possible values. -
getPublicKeyHash
Public Key Hash A unique identifier to retrieve key used by Apple to encrypt information. -
setPublicKeyHash
Public Key Hash A unique identifier to retrieve key used by Apple to encrypt information. -
withPublicKeyHash
Public Key Hash A unique identifier to retrieve key used by Apple to encrypt information. -
getRequiresApproval
- true = the payment requires approval before the funds will be captured using the Approve payment or Capture payment API
- false = the payment does not require approval, and the funds will be captured automatically
-
setRequiresApproval
- true = the payment requires approval before the funds will be captured using the Approve payment or Capture payment API
- false = the payment does not require approval, and the funds will be captured automatically
-
withRequiresApproval
- true = the payment requires approval before the funds will be captured using the Approve payment or Capture payment API
- false = the payment does not require approval, and the funds will be captured automatically
-