Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid sending telephone = false #21

Open
alexsegura opened this issue May 5, 2021 · 0 comments
Open

Avoid sending telephone = false #21

alexsegura opened this issue May 5, 2021 · 0 comments

Comments

@alexsegura
Copy link
Member

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;
}

alexsegura added a commit to coopcycle/coopcycle-web that referenced this issue May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant