public function accountPv(\Magento\Sales\Api\Data\OrderInterface $order)
    {
        /* sale state validation should be performed before */
        $orderId = $order->getEntityId();
        /* update record state in the registry */
        $this->updateDatePaid($orderId);
        /* ... then transfer PV to the customer account */
        $req = new \Praxigento\Pv\Api\Service\Sale\Account\Pv\Request();
        $req->setSaleOrderId($orderId);
        $this->srvPvAccount->exec($req);
    }
public function accountPv(\Magento\Sales\Api\Data\OrderInterface $order)
    {
        /* sale state validation should be performed before */
        $orderId = $order->getEntityId();
        /* update record state in the registry */
        $this->updateDatePaid($orderId);
        /* ... then transfer PV to the customer account */
        $req = new \Praxigento\Pv\Api\Service\Sale\Account\Pv\Request();
        $req->setSaleOrderId($orderId);
        $this->srvPvAccount->exec($req);
    }
public function accountPv ( \ Magento \ Sales \ Api \ Data \ OrderInterface $ order ) { /* sale state validation should be performed before */ $ orderId = $ order -> getEntityId ( ) ; /* update record state in the registry */ $ this -> updateDatePaid ( $ orderId ) ; /* ... then transfer PV to the customer account */ $ req = new \ Praxigento \ Pv \ Api \ Service \ Sale \ Account \ Pv \ Request ( ) ; $ req -> setSaleOrderId ( $ orderId ) ; $ this -> srvPvAccount -> exec ( $ req ) ; }
Collect order data and call service method to transfer PV to customer account.

@param \Magento\Sales\Api\Data\OrderInterface $order
@throws \Exception
Collect order data and call service method to transfer PV to customer account .