Banklink

Abstract class for every banklink.

Known subclasses

RKD\Banklink\EE\CoopPank, RKD\Banklink\EE\Danskebank, RKD\Banklink\EE\Estcard, RKD\Banklink\EE\LHV, RKD\Banklink\EE\Liisi, RKD\Banklink\EE\Luminor, RKD\Banklink\EE\Nordea, RKD\Banklink\EE\Pocopay, RKD\Banklink\EE\SEB, RKD\Banklink\EE\Swedbank, RKD\Banklink\LT\Estcard, RKD\Banklink\LT\Luminor, RKD\Banklink\LT\SEB, RKD\Banklink\LT\Siauliu, RKD\Banklink\LT\Swedbank
Abstract

Open source code
Methods Summary
public
public
# debugMode( )
Activate debug mode. Changes requestUrl to testRequestUrl
public
# setRequestUrl( string $requestUrl )
Set request URL
public
# getPaymentRequest( int $orderId , float $sum , string $message , string $language = 'EST', string $currency = 'EUR', array $customRequestData = array ( ), string $timezone = 'Europe/Tallinn' )
Get payment object
public
# getAuthRequest( string $recId = NULL, string $nonce = NULL, string $rid = NULL, string $language = 'EST', string $timezone = 'Europe/Tallinn' )
Get authentication object
public
# handleResponse( array $responseData )
Handles response from bank.
public
# getRequestUrlFor( string $type )
Get request url based on type
protected
# getResponseEncoding( array $responseData )
Get encoding for response, if response data has it.
protected
# getEncodingField( )
Detect if bank sent us data with encoding field.
protected
# getAdditionalFields( )
Add additional fields.
protected
# getAdditionalRequestFields( )
Additional request fields merged to request data
Properties Summary
protected RKD\Banklink\RKD\Banklink\Protocol $protocol
Protocol object used for communication.
# NULL
protected array $requestData
Request data.
# NULL
protected array $authData
Authentication data.
# NULL
protected mixed $requestUrl
Request url.
# NULL
protected mixed $testRequestUrl
Test request url.
# NULL
protected string $requestEncoding
Request encoding.
# 'UTF-8'
protected string $responseEncoding
Response encoding.
# 'UTF-8'