Skip to content

Update the ClientOrderNumber after checkout #88

@watta90

Description

@watta90

Hi,

The ClientOrderNumber is generated after the checkout is finished in my system. How can I update the ClientOrderNumber after the checkout in Svea? I've tried the following but it didn't update the ClientOrderNumber.

$orderBuilder = WebPay::checkout($config);
$orderBuilder->setCheckoutOrderId($checkoutId)
    ->setCountryCode('SE');

$item= WebPayItem::orderRow(); // I get the Items after quering the order.
$orderBuilder->addOrderRow($item);
$orderBuilder->setClientOrderNumber($newId);
$response = $orderBuilder->updateOrder();

I see that the regular orders are possible to update the ClientOrderNumber from this test:

public function test_add_new_clientordernumber_invoice()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions