Implementing a custom payment

Help for integrating the Laravel package
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!
User avatar
aimeos
Administrator
Posts: 7865
Joined: 01 Jan 1970, 00:00

Re: Implementing a custom payment

Post by aimeos » 24 Apr 2021, 09:37

khaldrogo wrote: 22 Apr 2021, 11:15 $get_order = $this->getOrder($order);
This is unnecessary because the order item is already passed to the method.
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.
It's impossible that the order base item returns NULL when calling getPrice() because:
- https://github.com/aimeos/aimeos-core/b ... #L299-L321
- https://github.com/aimeos/aimeos-core/b ... hp#L43-L49
khaldrogo wrote: 22 Apr 2021, 11:15 Is it possible to write raw queries in the process() function to pull the data I want?
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, Image give us a star