Class PaymentInputData.PaymentInputBuilder
java.lang.Object
com.gemalto.mfs.mwsdk.payment.engine.PaymentInputData.PaymentInputBuilder
- Enclosing class:
- PaymentInputData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withMCRemotePaymentParameters(char countryCode, TransactionType transactionType, CryptogramDataType cryptogramDataType, long unPredictableNumber) withPureQRCodePaymentParameters(byte[] iddData, byte[] aidData) withQRCodePaymentParameters(String amount, char currencyCode, char countryCode) withRemotePaymentParameters(long amount, char currencyCode)
-
Constructor Details
-
PaymentInputBuilder
- Parameters:
paymentType-PaymentTypeof the transaction.PaymentType.DSRPorPaymentType.QR- Since:
- 6.1.0
-
-
Method Details
-
withRemotePaymentParameters
public PaymentInputData.PaymentInputBuilder withRemotePaymentParameters(long amount, char currencyCode) - Parameters:
amount- : Transaction amount of the transactioncurrencyCode- : Currency code of the transaction- Returns:
- :
PaymentInputData.PaymentInputBuilderwith the remote parameters passed returned - Since:
- 6.1.0
-
withMCRemotePaymentParameters
public PaymentInputData.PaymentInputBuilder withMCRemotePaymentParameters(char countryCode, TransactionType transactionType, CryptogramDataType cryptogramDataType, long unPredictableNumber) - Parameters:
countryCode- Country code of the transactiontransactionType- Transaction type of the transactioncryptogramDataType- Cryptogram Data type of the transactionCryptogramDataType- Returns:
PaymentInputData.PaymentInputBuilderwith the MasterCard remote parameters returned- Since:
- 6.1.0
-
withQRCodePaymentParameters
public PaymentInputData.PaymentInputBuilder withQRCodePaymentParameters(String amount, char currencyCode, char countryCode) - Parameters:
amount- Transaction amount of the transactioncurrencyCode- Currency code of the transaction as defined in ISO 3166 numeric code. For example: United States would be represented as 840. The maximum value allowed is 999.countryCode- Country code of the merchant as defined by merchant. If not present MPA can send (char) 0- Returns:
PaymentInputData.PaymentInputBuilderwith the QR remote parameters passed returned- Since:
- 6.4.0
-
withPureQRCodePaymentParameters
public PaymentInputData.PaymentInputBuilder withPureQRCodePaymentParameters(byte[] iddData, byte[] aidData) - Parameters:
iddData- IDD data of the transactionaidData- AID data for the transaction- Returns:
PaymentInputData.PaymentInputBuilderwith the Pure QR code parameters passed returned- Since:
- 6.4.0
-
build
- Returns:
PaymentInputDataof the provided input data builder- Since:
- 6.1.0
-