diff --git a/modules/ppcp-api-client/src/Factory/PurchaseUnitFactory.php b/modules/ppcp-api-client/src/Factory/PurchaseUnitFactory.php index 16d884973..b73fae6ad 100644 --- a/modules/ppcp-api-client/src/Factory/PurchaseUnitFactory.php +++ b/modules/ppcp-api-client/src/Factory/PurchaseUnitFactory.php @@ -121,7 +121,6 @@ class PurchaseUnitFactory { $payee = $this->payee_repository->payee(); $custom_id = (string) $order->get_id(); $invoice_id = $this->prefix . $order->get_order_number(); - $retry = $order->get_meta( 'ppcp-retry' ) ? '-' . $order->get_meta( 'ppcp-retry' ) : ''; $soft_descriptor = ''; $purchase_unit = new PurchaseUnit( diff --git a/tests/PHPUnit/ApiClient/Factory/PurchaseUnitFactoryTest.php b/tests/PHPUnit/ApiClient/Factory/PurchaseUnitFactoryTest.php index 6fc736798..accc31781 100644 --- a/tests/PHPUnit/ApiClient/Factory/PurchaseUnitFactoryTest.php +++ b/tests/PHPUnit/ApiClient/Factory/PurchaseUnitFactoryTest.php @@ -26,7 +26,6 @@ class PurchaseUnitFactoryTest extends TestCase $wcOrder = Mockery::mock(\WC_Order::class); $wcOrder->expects('get_order_number')->andReturn($this->wcOrderNumber); $wcOrder->expects('get_id')->andReturn($this->wcOrderId); - $wcOrder->expects('get_meta')->andReturn(''); $amount = Mockery::mock(Amount::class); $amountFactory = Mockery::mock(AmountFactory::class); $amountFactory @@ -91,7 +90,6 @@ class PurchaseUnitFactoryTest extends TestCase $wcOrder = Mockery::mock(\WC_Order::class); $wcOrder->expects('get_order_number')->andReturn($this->wcOrderNumber); $wcOrder->expects('get_id')->andReturn($this->wcOrderId); - $wcOrder->expects('get_meta')->andReturn(''); $amount = Mockery::mock(Amount::class); $amountFactory = Mockery::mock(AmountFactory::class); $amountFactory @@ -147,7 +145,6 @@ class PurchaseUnitFactoryTest extends TestCase $wcOrder = Mockery::mock(\WC_Order::class); $wcOrder->expects('get_order_number')->andReturn($this->wcOrderNumber); $wcOrder->expects('get_id')->andReturn($this->wcOrderId); - $wcOrder->expects('get_meta')->andReturn(''); $amount = Mockery::mock(Amount::class); $amountFactory = Mockery::mock(AmountFactory::class); $amountFactory