Services/Wrapper/PaymillTransactionWrapper.php
public function create($amount, $currency, $token, $description = "")
    {
        $service = new Request($this->apiKey);
        $transaction = new RequestTransaction();
        $transaction
            ->setAmount($amount)
            ->setCurrency($currency)
            ->setToken($token)
            ->setDescription($description);

        /**
         * @var \Paymill\Models\Response\Base $response
         */
        $response = $service->create($transaction);

        return $response;
    }
public function create($amount, $currency, $token, $description = "")
    {
        $service = new Request($this->apiKey);
        $transaction = new RequestTransaction();
        $transaction
            ->setAmount($amount)
            ->setCurrency($currency)
            ->setToken($token)
            ->setDescription($description);

        /**
         * @var \Paymill\Models\Response\Base $response
         */
        $response = $service->create($transaction);

        return $response;
    }
public function create ( $ amount , $ currency , $ token , $ description = "" ) { $ service = new Request ( $ this -> apiKey ) ; $ transaction = new RequestTransaction ( ) ; $ transaction -> setAmount ( $ amount ) -> setCurrency ( $ currency ) -> setToken ( $ token ) -> setDescription ( $ description ) ; /**
         * @var \Paymill\Models\Response\Base $response
         */ $ response = $ service -> create ( $ transaction ) ; return $ response ; }
Create new Transaction with a set of params

@param string $amount      amount as int (ex: 4200 for 42.00)
@param string $currency    currency code (EUR, USD...)
@param string $token       transaction token
@param string $description transaction description (optional, default "")

@return \Paymill\Models\Response\Base

@throws PaymillException if transaction creation fails
Create new Transaction with a set of params