Pakceta – Error if phone number isn’t specified
-
Packeta error: Invalid value '', please provide a literal that is among the set of character sequences denoted by the regular expression /\s*(\+?42[01])?\s*[0-9]{3}\s*[0-9]{3}\s*[0-9]{3}\s*/
Payload:
{"first_name":"<redacted>","last_name":"<redacted>","order_number":"1062","email":"<redacted>","phone":"","total":76.45,"currency":"EUR","street":"<redacted>","city":"<redacted>","zip":"<redacted>","address_id":<redacted>,"weight":"4.9"}
I have also tested this with a Vienna ZIP and city and it seems that the regexp that Packeta is trying to enforce within it’s API doesn’t reflect that at all (maybe that would change later, no idea)
If I had to guess, the code responsible for this can be found here: https://gitlab.com/wpify/wpify-woo/-/blob/master/lib/PacketeraSDK/src/WpifyWoo/PacketeraSDK/StructType/ClaimAttributes.php#L202– eh probably not…, but something similarMy use-case is that: 1) I don’t want to collect user’s phone numbers, because why should I 2) I want to sell to many different countries with Packeta, and this bug obvisouly avoids me from doing that ??
According to the API docs, phone number is not required. If a phone number is not present in the order, the plugin should handle this and not include this parameter at all, IMO
What do you think?
- The topic ‘Pakceta – Error if phone number isn’t specified’ is closed to new replies.