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

Bug, security code removing left zero and broken tests #1

Merged
merged 1 commit into from
Apr 10, 2014
Merged

Bug, security code removing left zero and broken tests #1

merged 1 commit into from
Apr 10, 2014

Conversation

jroliveira
Copy link
Contributor

When a user buys with a security code that starts with zero, Cielo returns the error below:

Cielo.Responses.Exceptions.ResponseException: O XML informado n o valido: - string value '11' does not match pattern for type of codigo-seguranca element in DadosCartao in namespace http://ecommerce.cbmp.com.br: ''

This error occurs because the user input is, for example, 011 and the variable security code is a type int, so the left zero is removed sending only 11 to Cielo.

lfreneda pushed a commit that referenced this pull request Apr 10, 2014
Bug, security code removing left zero and broken tests
@lfreneda lfreneda merged commit 6e843d9 into lfreneda:master Apr 10, 2014
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

Successfully merging this pull request may close these issues.

2 participants