Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ class TransactionRefund extends AbstractTransaction
protected function process(array $data)
{
$storeId = $data['store_id'] ?? null;
// sending store id and other additional keys are restricted by Braintree API
unset($data['store_id']);

return $this->adapterFactory->create($storeId)
->refund($data['transaction_id'], $data[PaymentDataBuilder::AMOUNT]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class TransactionSubmitForSettlement extends AbstractTransaction
protected function process(array $data)
{
$storeId = $data['store_id'] ?? null;
// sending store id and other additional keys are restricted by Braintree API
unset($data['store_id']);

return $this->adapterFactory->create($storeId)
->submitForSettlement($data[CaptureDataBuilder::TRANSACTION_ID], $data[PaymentDataBuilder::AMOUNT]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ class TransactionVoid extends AbstractTransaction
protected function process(array $data)
{
$storeId = $data['store_id'] ?? null;
// sending store id and other additional keys are restricted by Braintree API
unset($data['store_id']);

return $this->adapterFactory->create($storeId)->void($data['transaction_id']);
}
Expand Down