public class SofortLibIDeal
extends java.lang.Object
sendIDealBanksRequest()
- generate the payment redirection URL for an iDEAL payment (GET method) with
getPaymentUrl(IDealRequest, String)
- generate the hash value for the iDEAL payment form (POST method) with
calculateHash(IDealRequest, String)
- check the integrity of the manually received iDEAL notification with
calculateHash(IDealNotificationResponse, String)| Constructor and Description |
|---|
SofortLibIDeal(ConnectionConfig connectionDataConfig,
DataHandler dataHandler,
HashAlgorithm hashAlgorithm)
Instantiates a new sofort lib iDEAL with given communication, handler and
defined hash algorithm data.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
calculateHash(IDealNotificationResponse response,
java.lang.String password)
Calculates the hash value for checking the integrity of the manually
received iDEAL notification.
|
java.lang.String |
calculateHash(IDealRequest request,
java.lang.String password)
Generates the hash value for the iDEAL payment form (POST method)
|
java.lang.String |
getPaymentUrl(IDealRequest request,
java.lang.String password)
Generates the payment redirection URL for an iDEAL payment (GET method).
|
IDealBanksResponse |
sendIDealBanksRequest()
Gets the current available iDEAL bank list with codes and names.
|
public SofortLibIDeal(ConnectionConfig connectionDataConfig, DataHandler dataHandler, HashAlgorithm hashAlgorithm)
connectionDataConfig - the connection data configdataHandler - the data handlerhashAlgorithm - the hash algorithm you defined in control center for
generation of hash value needed for communication with the
API.public IDealBanksResponse sendIDealBanksRequest()
public java.lang.String getPaymentUrl(IDealRequest request, java.lang.String password)
request - the request with iDEAL payment datapassword - the password defined in control centerpublic java.lang.String calculateHash(IDealRequest request, java.lang.String password)
request - the request with iDEAL payment datapassword - the password defined in control centerpublic java.lang.String calculateHash(IDealNotificationResponse response, java.lang.String password)
response - the response filled with the manually received notification
datapassword - the password defined in control center