According to the following documentation Order , I try to call method:
$paymentInfo = $payment->getPaymentInfo();
I suppose that $paymentInfo it is instance of PaymentInfo , however I get a weird error:
Warning: class_implements(): Class \Commercetools\Core\Model\Cart\PaymentInfo does not exist and could not be loaded in vendor/commercetools/php-sdk/src/Model/Common/AbstractJsonDeserializeObject.php on line 62
Could you please advise what I'm doing wrong?
Maybe in the commit src/Model/Order/Order.php instead of:
class Order extends Resource
{
public function fieldDefinitions()
{
return [
'paymentInfo' => [static::TYPE => '\Commercetools\Core\Model\Cart\PaymentInfo']
];
}
}
there should be something like the following:
class Order extends Resource
{
public function fieldDefinitions()
{
return [
'paymentInfo' => [static::TYPE => '\Commercetools\Core\Model\Payment\PaymentInfo']
];
}
}
According to the following documentation Order , I try to call method:
I suppose that $paymentInfo it is instance of PaymentInfo , however I get a weird error:
Could you please advise what I'm doing wrong?
Maybe in the commit src/Model/Order/Order.php instead of:
there should be something like the following:
Could you please tell what is your idea on this?