Skip to content

Insurance value for BE packages is set to 5 EUR #556

Description

@robvanderlee

SDK version

main

We are specifically using 7.25.1 yet it seems this bug is still in main code.

PHP version

8.3

What went wrong?

The insurance value is set incorrectly when creating consignments for outside of CC_NL in the current codebase. Resulting in not being able to i.e. create parcels for BE with insurance value of 1500 EUR. It will set to 5 EUR, picking the nearest option in the API - resulting in an parcel of 100 EUR.

Fixing this does allow to create parcels. This fix is inline with how you are able to create parcels via the myparcel dashboard.

I've already made a PR with a fix for this problem with a detailed explanation of this problem here.

Reproduction steps

  1. Use the library to create a consignment for an Belgium address using an insurance value of 1500 EUR.
  2. Go to the shipment page and observe the parcel has been made with an insurance value of 100 EUR.

Relevant log output

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions