Implementing a custom payment
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Re: Implementing a custom payment
This is unnecessary because the order item is already passed to the method.
It's impossible that the order base item returns NULL when calling getPrice() because:khaldrogo wrote: ↑22 Apr 2021, 11:15 $order_base = $this->getOrderBase($order->getBaseId(), \Aimeos\MShop\Order\Item\Base\Base::PARTS_ALL);
Both $this->getOrder() and $this->getOrderBase() return just an array with the original $order_id that gets passed in to the process() function. $order_base->getPrice() returns Null.
- https://github.com/aimeos/aimeos-core/b ... #L299-L321
- https://github.com/aimeos/aimeos-core/b ... hp#L43-L49
Yes, but not recommended. Instead, check what you are doing wrong in your code.
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