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 PaymentInputData
build()
PaymentInputData.PaymentInputBuilder
withMCRemotePaymentParameters(char countryCode, TransactionType transactionType, CryptogramDataType cryptogramDataType, long unPredictableNumber)
PaymentInputData.PaymentInputBuilder
withPureQRCodePaymentParameters(byte[] iddData, byte[] aidData)
PaymentInputData.PaymentInputBuilder
withQRCodePaymentParameters(java.lang.String amount, char currencyCode, char countryCode)
PaymentInputData.PaymentInputBuilder
withRemotePaymentParameters(long amount, char currencyCode)
-
-
-
Constructor Detail
-
PaymentInputBuilder
public PaymentInputBuilder(PaymentType paymentType)
- Parameters:
paymentType
-PaymentType
of the transaction.PaymentType.DSRP
orPaymentType.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.PaymentInputBuilder
with 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.PaymentInputBuilder
with 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.PaymentInputBuilder
with 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.PaymentInputBuilder
with the Pure QR code parameters passed returned- Since:
- 6.4.0
-
build
public PaymentInputData build()
- Returns:
PaymentInputData
of the provided input data builder- Since:
- 6.1.0
-
-