Components/Sepa/Shopware/SepaPaymentResponseParser.php
public function parse(array $element)
    {
        $payments = $this->parentResponseParser->parse($element);

        if (!$this->hasSepaPaymentInstance($element)) {
            return $payments;
        }

        if (empty($payments)) {
            $identifier = $this->getIdentifier($element['id'], Payment::TYPE);

            $payment = new Payment();
            $payment->setOrderIdentifer($this->getIdentifier($element['id'], Order::TYPE));
            $payment->setIdentifier($identifier);
            $payment->setShopIdentifier($this->getIdentifier($element['shopId'], Shop::TYPE));
            $payment->setTransactionReference($identifier);
            $payment->setCurrencyIdentifier($this->getIdentifier($this->getCurrencyId($element['currency']), Currency::TYPE));
            $payment->setPaymentMethodIdentifier($this->getIdentifier($element['paymentId'], PaymentMethod::TYPE));

            $payments = [$payment];
        }

        foreach ($payments as $payment) {
            if (!($payment instanceof Payment)) {
                continue;
            }

            $payment->setPaymentData($this->getSepaPaymentData($element));
        }

        return $payments;
    }
public function parse(array $element)
    {
        $payments = $this->parentResponseParser->parse($element);

        if (!$this->hasSepaPaymentInstance($element)) {
            return $payments;
        }

        if (empty($payments)) {
            $identifier = $this->getIdentifier($element['id'], Payment::TYPE);

            $payment = new Payment();
            $payment->setOrderIdentifer($this->getIdentifier($element['id'], Order::TYPE));
            $payment->setIdentifier($identifier);
            $payment->setShopIdentifier($this->getIdentifier($element['shopId'], Shop::TYPE));
            $payment->setTransactionReference($identifier);
            $payment->setCurrencyIdentifier($this->getIdentifier($this->getCurrencyId($element['currency']), Currency::TYPE));
            $payment->setPaymentMethodIdentifier($this->getIdentifier($element['paymentId'], PaymentMethod::TYPE));

            $payments = [$payment];
        }

        foreach ($payments as $payment) {
            if (!($payment instanceof Payment)) {
                continue;
            }

            $payment->setPaymentData($this->getSepaPaymentData($element));
        }

        return $payments;
    }
{@inheritdoc}