lib/AMNL/Mollie/Paysafecard/PaysafecardGateway.php
public function checkPayment($transaction_id)
    {
        // Check arguments
        if (null === $transaction_id || !is_string($transaction_id) || strlen(trim($transaction_id)) == 0) {
            throw new \InvalidArgumentException('Transaction ID should be a string.');
        }

        // Params
        $params = array(
            'partnerid' => $this->partnerId,
            'transaction_id' => $transaction_id,
        );

        // Do request
        $response = $this->request('check-status/', $params);

        // Gather data
        if ($response->order === null) {
            throw new MollieException('Unexpected response');
        }
        $transactionId = (string) $response->order->transaction_id;
        $amount = (int) $response->order->amount;
        $paid = ((string) $response->order->paid == 'true');
        $status = (string) $response->order->status;

        // Return TransactionStatus
        return new TransactionStatus($amount, $paid, $transactionId, $status);
    }
public function checkPayment($transaction_id)
    {
        // Check arguments
        if (null === $transaction_id || !is_string($transaction_id) || strlen(trim($transaction_id)) == 0) {
            throw new \InvalidArgumentException('Transaction ID should be a string.');
        }

        // Params
        $params = array(
            'partnerid' => $this->partnerId,
            'transaction_id' => $transaction_id,
        );

        // Do request
        $response = $this->request('check-status/', $params);

        // Gather data
        if ($response->order === null) {
            throw new MollieException('Unexpected response');
        }
        $transactionId = (string) $response->order->transaction_id;
        $amount = (int) $response->order->amount;
        $paid = ((string) $response->order->paid == 'true');
        $status = (string) $response->order->status;

        // Return TransactionStatus
        return new TransactionStatus($amount, $paid, $transactionId, $status);
    }
public function checkPayment ( $ transaction_id ) { // Check arguments if ( null === $ transaction_id || ! is_string ( $ transaction_id ) || strlen ( trim ( $ transaction_id ) ) == 0 ) { throw new \ InvalidArgumentException ( 'Transaction ID should be a string.' ) ; } // Params $ params = array ( 'partnerid' => $ this -> partnerId , 'transaction_id' => $ transaction_id , ) ; // Do request $ response = $ this -> request ( 'check-status/' , $ params ) ; // Gather data if ( $ response -> order === null ) { throw new MollieException ( 'Unexpected response' ) ; } $ transactionId = ( string ) $ response -> order -> transaction_id ; $ amount = ( int ) $ response -> order -> amount ; $ paid = ( ( string ) $ response -> order -> paid == 'true' ) ; $ status = ( string ) $ response -> order -> status ; // Return TransactionStatus return new TransactionStatus ( $ amount , $ paid , $ transactionId , $ status ) ; }
Check the state of a transaction

@param string $transaction_id Transaction ID
@return \AMNL\Mollie\IDeal\TransactionStatus
@throws \InvalidArgumentException
@throws MollieException
Check the state of a transaction