veritrans / veritrans.github.io

Veritrans documentation
http://veritrans.github.io
7 stars 15 forks source link

Invalid format on phone number #84

Closed ariestiyansyah closed 6 years ago

ariestiyansyah commented 7 years ago

I got the error below while input number with symbol (), I tried with this number (0274) 43434334

customer_details.billing_address.phone format is invalid format

But the api-docs said it accept () https://api-docs.midtrans.com/#customer-details

Customer's phone address. Minimum length is 5. Only accepts numeric and symbols +,-,(space), and (). The + symbol can only be placed in front

Since your documentaion allow to use () but your API said is invalid please let us know how to fix this one. The only thing we do to prevent this error is by using regex ^[0-9\-\+\s]*$ in telephone input validation.

Cheers

yocki-s commented 7 years ago

Hi @ariestiyansyah

Terimakasih untuk informasinya. kami akan cek terlebih dahulu.

rizdaprasetya commented 6 years ago

Hi @ariestiyansyah ,

There was validation bug on the frontend. This bug has already been solved few weeks ago. Now () symbol are allowed.

Thanks, @yocki-s can close this issue now.