Skip to content

Avoid sending telephone = false #21

@alexsegura

Description

@alexsegura

When sending false for the telephone, the API rejects the delivery.

Need to send null, or not add the key at all.

if ($address->phone || $address->phone_mobile) {
$payload['dropoff']['address']['telephone'] = $address->phone ? $address->phone : $address->phone_mobile;
}

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