for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Metaways Infosystems GmbH, 2012
* @copyright Aimeos (aimeos.org), 2015-2017
* @package MShop
* @subpackage Service
*/
namespace Aimeos\MShop\Service\Provider\Payment;
* Payment provider for post-paid orders.
*
class PostPay
extends \Aimeos\MShop\Service\Provider\Payment\Base
implements \Aimeos\MShop\Service\Provider\Payment\Iface
{
* Executes the payment again for the given order if supported.
* This requires support of the payment gateway and token based payment
* @param \Aimeos\MShop\Order\Item\Iface $order Order invoice object
* @return void
public function repay( \Aimeos\MShop\Order\Item\Iface $order )
}
* Updates the orders for whose status updates have been received by the confirmation page
* @param \Psr\Http\Message\ServerRequestInterface $request Request object with parameters and request body
* @param \Aimeos\MShop\Order\Item\Iface $order Order item that should be updated
* @return \Aimeos\MShop\Order\Item\Iface Updated order item
* @throws \Aimeos\MShop\Service\Exception If updating the orders failed
public function updateSync( \Psr\Http\Message\ServerRequestInterface $request, \Aimeos\MShop\Order\Item\Iface $order )
$order->setPaymentStatus( \Aimeos\MShop\Order\Item\Base::PAY_AUTHORIZED );
$this->saveOrder( $order );
return $order;