ECommerce

Protocol for ECommerce payment.
implements RKD\Banklink\Protocol\ProtocolInterface uses RKD\Banklink\Protocol\ProtocolTrait\NoAuthTrait
Methods Summary
public
# __construct( string $sellerId , string $privateKey , string $privateKeyPassword , string $publicKey , string $requestUrl , string $version = '004' )
Init IPizza protocol.
public
# getPaymentRequest( int $orderId , float $sum , string $message , string $language = 'EST', string $currency = 'EUR', array $customRequestData = array ( ), string $encoding = 'UTF-8', string $timezone = 'Europe/Tallinn' )
protected
# handlePaymentResponse( array $responseData , bool $success )
Get payment response.
protected
# getSignature( array $data , string $encoding = 'UTF-8' )
Generates signature for request.
protected
# generateSignature( array $data , string $encoding = 'UTF-8' )
Generate MAC string from array of fields.

SuppressWarnings


protected
# validateSignature( array $response , string $encoding = 'UTF-8' )
Validate bank signature.
public
# setAlgorithm( int|string $algorithm )
Set algorithm used to generate mac Should be one of valid values for openssl_sign functions signature_alg parameter

see

public
# getAlgorithm( )
Get algorithm used to generate mac
Methods used from RKD\Banklink\Protocol\ProtocolTrait\NoAuthTrait trait
getAuthRequest() handleResponse()
Constants Summary
public string PAYMENT_RESPONSE_SUCCESS
Successful response code.
# '000'
public string PAYMENT_RESPONSE_ABORT
Abort (user aborted payment) response code.
# '017'
Properties Summary
protected string $publicKey
File path or file contents of public key.
# NULL
protected string $privateKey
File path or file contents of private key.
# NULL
protected string $privateKeyPassword
Private key password.
# NULL
protected string $sellerId
Seller id, provided by bank.
# NULL
protected string $version
Protocol version used for communication.
# NULL
protected string $requestUrl
Request url, where data will be sent.
# NULL
protected bool $result
Result of signature validation.
# NULL
protected int|string $algorithm
Algorithm used to generate mac
# 1
Properties used from RKD\Banklink\Protocol\ProtocolTrait\NoAuthTrait