Beispiel #1
0
 public function registerRebillSale(OW_BillingAdapter $adapter, BOL_BillingSale $parentSale, $rebillTransId)
 {
     $parentSale->id = null;
     $parentSale->transactionUid = $rebillTransId;
     $gateway = $this->billingGatewayDao->findById($parentSale->gatewayId);
     $saleId = $this->initSale($parentSale, $gateway->gatewayKey);
     $sale = $this->getSaleById($saleId);
     $this->prepareSale($adapter, $sale);
     $sale = $this->getSaleById($saleId);
     $this->verifySale($adapter, $sale);
     return $saleId;
 }