mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Remove prefix from custom id
This commit is contained in:
parent
f23df0b91c
commit
6d905d01c8
2 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ class PurchaseUnitFactory {
|
|||
$reference_id = 'default';
|
||||
$description = '';
|
||||
$payee = $this->payee_repository->payee();
|
||||
$custom_id = $this->prefix . (string) $order->get_id();
|
||||
$custom_id = (string) $order->get_id();
|
||||
$invoice_id = $this->prefix . $order->get_order_number();
|
||||
$soft_descriptor = '';
|
||||
$purchase_unit = new PurchaseUnit(
|
||||
|
|
|
@ -77,7 +77,7 @@ class PurchaseUnitFactoryTest extends TestCase
|
|||
$this->assertEquals($payee, $unit->payee());
|
||||
$this->assertEquals('', $unit->description());
|
||||
$this->assertEquals('default', $unit->reference_id());
|
||||
$this->assertEquals('WC-' . $this->wcOrderId, $unit->custom_id());
|
||||
$this->assertEquals($this->wcOrderId, $unit->custom_id());
|
||||
$this->assertEquals('', $unit->soft_descriptor());
|
||||
$this->assertEquals('WC-' . $this->wcOrderNumber, $unit->invoice_id());
|
||||
$this->assertEquals([$item], $unit->items());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue