Components/Klarna/Plentymarkets/KlarnaRequestGenerator.php
public function generate(Payment $payment)
    {
        $paymentParams = $this->parentRequestGenerator->generate($payment);
        $data = $payment->getPaymentData();

        if (!($data instanceof KlarnaPaymentData)) {
            return $paymentParams;
        }

        $paymentParams['properties'][] = [
            'typeId' => 2,
            'value' => $data->getTransactionId() . '_' . $data->getPclassId() . '_' . $data->getShopId(),
        ];

        return $paymentParams;
    }
public function generate(Payment $payment)
    {
        $paymentParams = $this->parentRequestGenerator->generate($payment);
        $data = $payment->getPaymentData();

        if (!($data instanceof KlarnaPaymentData)) {
            return $paymentParams;
        }

        $paymentParams['properties'][] = [
            'typeId' => 2,
            'value' => $data->getTransactionId() . '_' . $data->getPclassId() . '_' . $data->getShopId(),
        ];

        return $paymentParams;
    }
public function generate ( Payment $ payment ) { $ paymentParams = $ this -> parentRequestGenerator -> generate ( $ payment ) ; $ data = $ payment -> getPaymentData ( ) ; if ( ! ( $ data instanceof KlarnaPaymentData ) ) { return $ paymentParams ; } $ paymentParams [ 'properties' ] [ ] = [ 'typeId' => 2 , 'value' => $ data -> getTransactionId ( ) . '_' . $ data -> getPclassId ( ) . '_' . $ data -> getShopId ( ) , ] ; return $ paymentParams ; }
{@inheritdoc}
{