Class PaymentInputData.PaymentInputBuilder
- java.lang.Object
-
- com.gemalto.mfs.mwsdk.payment.engine.PaymentInputData.PaymentInputBuilder
-
- Enclosing class:
- PaymentInputData
public static class PaymentInputData.PaymentInputBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PaymentInputBuilder(PaymentType paymentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentInputDatabuild()PaymentInputData.PaymentInputBuilderwithMCRemotePaymentParameters(char countryCode, TransactionType transactionType, CryptogramDataType cryptogramDataType, long unPredictableNumber)PaymentInputData.PaymentInputBuilderwithPureQRCodePaymentParameters(byte[] iddData, byte[] aidData)PaymentInputData.PaymentInputBuilderwithQRCodePaymentParameters(java.lang.String amount, char currencyCode, char countryCode)PaymentInputData.PaymentInputBuilderwithRemotePaymentParameters(long amount, char currencyCode)
-
-
-
Constructor Detail
-
PaymentInputBuilder
public PaymentInputBuilder(PaymentType paymentType)
- Parameters:
paymentType-PaymentTypeof the transaction.PaymentType.DSRPorPaymentType.QR- Since:
- 6.1.0
-
-
Method Detail
-
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(java.lang.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
public PaymentInputData build()
- Returns:
PaymentInputDataof the provided input data builder- Since:
- 6.1.0
-
-