for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace SprykerEco\Zed\Braintree\Business\Payment\Transaction;
use Braintree\Transaction as BraintreeTransaction;
use SprykerEco\Zed\Braintree\Business\Payment\Method\ApiConstants;
class CaptureOrderTransaction extends AbstractTransaction
{
* @return string
protected function getTransactionType()
return ApiConstants::SALE;
}
protected function getTransactionCode()
return ApiConstants::TRANSACTION_CODE_CAPTURE;
* @return \Braintree\Result\Error|\Braintree\Result\Successful
protected function doTransaction()
return $this->capture();
protected function capture()
return BraintreeTransaction::submitForSettlement($this->getTransactionIdentifier());