123456789101112131415161718192021 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Braintree\Gateway\Http\Client;
- class TransactionVoid extends AbstractTransaction
- {
- /**
- * Process http request
- * @param array $data
- * @return \Braintree\Result\Error|\Braintree\Result\Successful
- */
- protected function process(array $data)
- {
- $storeId = $data['store_id'] ?? null;
- return $this->adapterFactory->create($storeId)->void($data['transaction_id']);
- }
- }
|