PHP Class Payler

Afficher le fichier Open project: yupe/yupe Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Payment $payment )
getOrderIdFromHash ( CHttpRequest $request ) : string | boolean Gets the order ID from hash
getPaymentStatus ( CHttpRequest $request ) : string | boolean Gets the status of the current payment
getSessionId ( Order $order ) : string | boolean Starts a payment session and returns its ID
getUrl ( string $method ) : string Generate url

Private Methods

Méthode Description
sendRequest ( array $data, string $method ) : boolean | mixed Sends a request to the server

Method Details

__construct() public méthode

public __construct ( Payment $payment )
$payment Payment

getOrderIdFromHash() public méthode

Gets the order ID from hash
public getOrderIdFromHash ( CHttpRequest $request ) : string | boolean
$request CHttpRequest
Résultat string | boolean

getPaymentStatus() public méthode

Gets the status of the current payment
public getPaymentStatus ( CHttpRequest $request ) : string | boolean
$request CHttpRequest
Résultat string | boolean

getSessionId() public méthode

Starts a payment session and returns its ID
public getSessionId ( Order $order ) : string | boolean
$order Order
Résultat string | boolean

getUrl() public méthode

Generate url
public getUrl ( string $method ) : string
$method string Payler API method
Résultat string