Save Hash as Service Attribute / Value
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Save Hash as Service Attribute / Value
i try to save hash in paymentprovider:
$baseItem = $this->getOrderBase($order->getBaseId());
$serviceItem = $baseItem->getServices('payment');
$serviceItem->setCode('order_hash');
$serviceItem->setValue($hash);
$this->saveOrder($order);
and then use it in confirm page to verify:
$baseItem = $this->getOrderBase($unconfirmed_order->getBaseId());
$serviceItem = $baseItem->getServices('payment');
$order_hash = $serviceItem->getAttribute('order_hash');
what am i doing wrong/ how to make this work?
$baseItem = $this->getOrderBase($order->getBaseId());
$serviceItem = $baseItem->getServices('payment');
$serviceItem->setCode('order_hash');
$serviceItem->setValue($hash);
$this->saveOrder($order);
and then use it in confirm page to verify:
$baseItem = $this->getOrderBase($unconfirmed_order->getBaseId());
$serviceItem = $baseItem->getServices('payment');
$order_hash = $serviceItem->getAttribute('order_hash');
what am i doing wrong/ how to make this work?
Re: Save Hash as Service Attribute / Value
You have to save the code/value as order server attribute, not in the order service item directly:
https://github.com/aimeos/aimeos-core/b ... #L498-L514
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star