public class SofortLibPaycode
extends java.lang.Object
sendPaycodeRequest(PaycodeRequest)
- parse the received status notification to
SofortTransactionStatusNotification with
parseStatusNotificationResponse(RawResponse)
- get the payment transaction details with
sendPaycodeTransactionDetailsRequest(PaycodeTransactionDetailsRequest)| Constructor and Description |
|---|
SofortLibPaycode(ConnectionConfig connectionConfig,
DataHandler dataHandler)
Instantiates a new sofort lib payment with the given communication and
handler data.
|
| Modifier and Type | Method and Description |
|---|---|
SofortTransactionStatusNotification |
parseStatusNotificationResponse(RawResponse rawResponse)
Parses the received status notification response to a
SofortTransactionStatusNotification. |
PaycodeResponse |
sendPaycodeRequest(PaycodeRequest request)
Initiates a SOFORT Paycode for getting the transaction ID and redirection
payment URL for buyer.
|
PaycodeStatusResponse |
sendPaycodeStatusRequest(PaycodeStatusRequest request)
Gets the paycode status for the given paycode.
|
PaycodeTransactionDetailsResponse |
sendPaycodeTransactionDetailsRequest(PaycodeTransactionDetailsRequest request)
Gets the transaction details for either the transaction IDs or the
transaction time/status search parameters.
|
public SofortLibPaycode(ConnectionConfig connectionConfig, DataHandler dataHandler)
connectionConfig - the connection configdataHandler - the data handlerpublic PaycodeResponse sendPaycodeRequest(PaycodeRequest request)
request - the filled payment requestpublic SofortTransactionStatusNotification parseStatusNotificationResponse(RawResponse rawResponse)
SofortTransactionStatusNotification.rawResponse - the raw response with the status notification as contentpublic PaycodeStatusResponse sendPaycodeStatusRequest(PaycodeStatusRequest request)
request - the request with the paycode status detailspublic PaycodeTransactionDetailsResponse sendPaycodeTransactionDetailsRequest(PaycodeTransactionDetailsRequest request)
request - the request with transaction search parameters