\Clapp\OtpHu\ResponsePaymentResponse

Represents a response for Gateway::purchase()->send()

Summary

Methods
Properties
Constants
__construct()
isSuccessful()
isRedirect()
getRedirectUrl()
getRedirectMethod()
getRedirectData()
getTransactionId()
$validMessageStrings
No constants found
parseResponseData()
$redirectUrl
$messageString
N/A
No private methods found
No private properties found
N/A

Properties

$validMessageStrings

$validMessageStrings : array

Type

array — list of `$messageString`s that are considered as a valid response

$redirectUrl

$redirectUrl : 

https://www.otpbankdirekt.hu/webshop/do/webShopVasarlasInditas?posId={0}&azonosito={1}&nyelvkod={2}

Type

$messageString

$messageString : string

Type

string — status message returned by the gateway

Methods

__construct()

__construct(\Omnipay\Common\Message\RequestInterface  $request, mixed  $data) 

Constructor

Parameters

\Omnipay\Common\Message\RequestInterface $request

the initiating request.

mixed $data

isSuccessful()

isSuccessful() 

sikeresen kifizette-e az összeget a felhasználó nem, mivel ez mindig redirectel, hiszen majd a banki felületen fog fizetni

isRedirect()

isRedirect() : boolean

Does the response require a redirect?

Returns

boolean

getRedirectUrl()

getRedirectUrl() : string

Gets the redirect target url.

Returns

string

getRedirectMethod()

getRedirectMethod() : string

Get the required redirect method (either GET or POST).

Returns

string

getRedirectData()

getRedirectData() : array

Gets the redirect form data array, if the redirect method is POST.

Returns

array

getTransactionId()

getTransactionId() : string

Get the transaction ID as generated by the merchant website.

Returns

string

parseResponseData()

parseResponseData(string  $data) : string

Parse the response as an xml string

Parameters

string $data

xml string returned by the gateway

Throws

\Clapp\OtpHu\Response\UnknownShopIdResponse
\Clapp\OtpHu\BadResponseException

Returns

string —

messageString from the gateway