public class SofortLibPayment
extends java.lang.Object
sendPaymentRequest(PaymentRequest)
- parse the received status notification to
SofortTransactionStatusNotification with
parseStatusNotificationResponse(RawResponse)
- get the payment transaction details with
sendTransactionDetailsRequest(PaymentTransactionDetailsRequest)| Constructor and Description |
|---|
SofortLibPayment(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. |
PaymentResponse |
sendPaymentRequest(PaymentRequest request)
Initiates a SOFORT Payment for getting the transaction ID and redirection
payment URL for buyer.
|
PaymentTransactionDetailsResponse |
sendTransactionDetailsRequest(PaymentTransactionDetailsRequest request)
Gets the transaction details for either the transaction IDs or the
transaction time/status search parameters.
|
public SofortLibPayment(ConnectionConfig connectionConfig, DataHandler dataHandler)
connectionConfig - the connection configdataHandler - the data handlerpublic PaymentResponse sendPaymentRequest(PaymentRequest request)
request - the filled payment requestpublic SofortTransactionStatusNotification parseStatusNotificationResponse(RawResponse rawResponse)
SofortTransactionStatusNotification.rawResponse - the raw response with the status notification as contentpublic PaymentTransactionDetailsResponse sendTransactionDetailsRequest(PaymentTransactionDetailsRequest request)
request - the request with transaction search parameters