Skip to content
Open
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
8 changes: 8 additions & 0 deletions Observer/Gateway/CreditCardDataAssignObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ public function execute(Observer $observer): void
$additionalData = $data->getData(PaymentInterface::KEY_ADDITIONAL_DATA);
$payment = $this->readPaymentModelArgument($observer);

/**
* Return early because the event is being triggered by a GraphQL request which contains a different structure,
* and for that reason the request will be wrongly set as a redirect in next step.
*/
if (isset($additionalData['additional_information']['payload'])) {
return;
}

if (empty($additionalData['payload'])) {
$payment->setAdditionalInformation(
'transaction_type',
Expand Down