public function transact($amount, $orderId, $invoiceNumber = null)
    {
        $this->transaction = [
            'amount' => $amount,
            'orderId' => $orderId,
            'invoiceNumber' => $invoiceNumber ?: $orderId,
        ];

        return $this->initiateTransaction();
    }
public function transact($amount, $orderId, $invoiceNumber = null)
    {
        $this->transaction = [
            'amount' => $amount,
            'orderId' => $orderId,
            'invoiceNumber' => $invoiceNumber ?: $orderId,
        ];

        return $this->initiateTransaction();
    }
public function transact ( $ amount , $ orderId , $ invoiceNumber = null ) { $ this -> transaction = [ 'amount' => $ amount , 'orderId' => $ orderId , 'invoiceNumber' => $ invoiceNumber ? : $ orderId , ] ; return $ this -> initiateTransaction ( ) ; }
Set up the transaction details and forward the request to be handled.

@param $amount
@param $orderId
@param null $invoiceNumber
@return string
Set up the transaction details and forward the request to be handled .