{"action":"created","issue":{"url":"https://api.github.com/repos/mercadopago/px-android_services/issues/9","repository_url":"https://api.github.com/repos/mercadopago/px-android_services","labels_url":"https://api.github.com/repos/mercadopago/px-android_services/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/mercadopago/px-android_services/issues/9/comments","events_url":"https://api.github.com/repos/mercadopago/px-android_services/issues/9/events","html_url":"https://github.com/mercadopago/px-android_services/issues/9","id":292528427,"number":9,"title":"Create a single use token - Error","user":{"login":"Rart3001","id":12099493,"avatar_url":"https://avatars1.githubusercontent.com/u/12099493?v=4","gravatar_id":"","url":"https://api.github.com/users/Rart3001","html_url":"https://github.com/Rart3001","followers_url":"https://api.github.com/users/Rart3001/followers","following_url":"https://api.github.com/users/Rart3001/following{/other_user}","gists_url":"https://api.github.com/users/Rart3001/gists{/gist_id}","starred_url":"https://api.github.com/users/Rart3001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rart3001/subscriptions","organizations_url":"https://api.github.com/users/Rart3001/orgs","repos_url":"https://api.github.com/users/Rart3001/repos","events_url":"https://api.github.com/users/Rart3001/events{/privacy}","received_events_url":"https://api.github.com/users/Rart3001/received_events","type":"User","site_admin":false},"labels":[{"id":724026609,"url":"https://api.github.com/repos/mercadopago/px-android_services/labels/help%20wanted","name":"help wanted","color":"33aa3f","default":true}],"state":"closed","locked":false,"assignee":{"login":"valeserber","id":5674142,"avatar_url":"https://avatars3.githubusercontent.com/u/5674142?v=4","gravatar_id":"","url":"https://api.github.com/users/valeserber","html_url":"https://github.com/valeserber","followers_url":"https://api.github.com/users/valeserber/followers","following_url":"https://api.github.com/users/valeserber/following{/other_user}","gists_url":"https://api.github.com/users/valeserber/gists{/gist_id}","starred_url":"https://api.github.com/users/valeserber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valeserber/subscriptions","organizations_url":"https://api.github.com/users/valeserber/orgs","repos_url":"https://api.github.com/users/valeserber/repos","events_url":"https://api.github.com/users/valeserber/events{/privacy}","received_events_url":"https://api.github.com/users/valeserber/received_events","type":"User","site_admin":false},"assignees":[{"login":"valeserber","id":5674142,"avatar_url":"https://avatars3.githubusercontent.com/u/5674142?v=4","gravatar_id":"","url":"https://api.github.com/users/valeserber","html_url":"https://github.com/valeserber","followers_url":"https://api.github.com/users/valeserber/followers","following_url":"https://api.github.com/users/valeserber/following{/other_user}","gists_url":"https://api.github.com/users/valeserber/gists{/gist_id}","starred_url":"https://api.github.com/users/valeserber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valeserber/subscriptions","organizations_url":"https://api.github.com/users/valeserber/orgs","repos_url":"https://api.github.com/users/valeserber/repos","events_url":"https://api.github.com/users/valeserber/events{/privacy}","received_events_url":"https://api.github.com/users/valeserber/received_events","type":"User","site_admin":false},{"login":"mreverter","id":11367894,"avatar_url":"https://avatars0.githubusercontent.com/u/11367894?v=4","gravatar_id":"","url":"https://api.github.com/users/mreverter","html_url":"https://github.com/mreverter","followers_url":"https://api.github.com/users/mreverter/followers","following_url":"https://api.github.com/users/mreverter/following{/other_user}","gists_url":"https://api.github.com/users/mreverter/gists{/gist_id}","starred_url":"https://api.github.com/users/mreverter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mreverter/subscriptions","organizations_url":"https://api.github.com/users/mreverter/orgs","repos_url":"https://api.github.com/users/mreverter/repos","events_url":"https://api.github.com/users/mreverter/events{/privacy}","received_events_url":"https://api.github.com/users/mreverter/received_events","type":"User","site_admin":false}],"milestone":null,"comments":11,"created_at":"2018-01-29T19:21:35Z","updated_at":"2018-02-20T18:56:30Z","closed_at":"2018-02-14T20:28:46Z","author_association":"NONE","body":"I try to get a card token single use, and always get the same error:\r\n\r\n`Error: invalid location - error: bad_request - status - 400`\r\n\r\nthis is my code:\r\n\r\n```\r\nprivate void testCardTokenRequest(){\r\n\r\n        //Get the user public key\r\n        final String publicKey = \"TEST-ad365c37-8012-4014-84f5-6c895b3f8e0a\";\r\n        Log.i(TAG, \"publicKey = \" + publicKey);\r\n\r\n        // Init MercadoPagoServices object with public key\r\n        MercadoPagoServices mMercadoPagoServices = new MercadoPagoServices.Builder()\r\n                .setContext(this)\r\n                .setPublicKey(publicKey)\r\n                .build();\r\n\r\n        Identification identification = new Identification();\r\n        identification.setNumber(\"12345678\");\r\n        identification.setType(\"CI-V\");\r\n\r\n        Cardholder cardholder = new Cardholder();\r\n        cardholder.setIdentification(identification);\r\n        cardholder.setName(\"APRO PEDRO PEREZ\");\r\n\r\n        CardToken mCardToken = new CardToken();\r\n        mCardToken.setCardholder(cardholder);\r\n        mCardToken.setCardNumber(\"5177076164300010\");\r\n        mCardToken.setDevice(PaymentsListActivity.this);\r\n        mCardToken.setExpirationMonth(12);\r\n        mCardToken.setExpirationYear(2018);\r\n        mCardToken.setSecurityCode(\"123\");\r\n\r\n\r\n        mMercadoPagoServices.createToken(mCardToken, new Callback<Token>() {\r\n            @Override\r\n            public void success(@NonNull Token token) {\r\n                Log.i(TAG, \"Card token = \" + token.getId());\r\n            }\r\n\r\n            @Override\r\n            public void failure(@NonNull ApiException error) {\r\n\r\n                Log.e(TAG, \"requestCardToken Error: \"+error.getMessage()+\" - error: \"+error.getError()+\" - status - \"+error.getStatus());\r\n              \r\n            }\r\n        });\r\n\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/mercadopago/px-android_services/issues/comments/367081096","html_url":"https://github.com/mercadopago/px-android_services/issues/9#issuecomment-367081096","issue_url":"https://api.github.com/repos/mercadopago/px-android_services/issues/9","id":367081096,"user":{"login":"valeserber","id":5674142,"avatar_url":"https://avatars3.githubusercontent.com/u/5674142?v=4","gravatar_id":"","url":"https://api.github.com/users/valeserber","html_url":"https://github.com/valeserber","followers_url":"https://api.github.com/users/valeserber/followers","following_url":"https://api.github.com/users/valeserber/following{/other_user}","gists_url":"https://api.github.com/users/valeserber/gists{/gist_id}","starred_url":"https://api.github.com/users/valeserber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valeserber/subscriptions","organizations_url":"https://api.github.com/users/valeserber/orgs","repos_url":"https://api.github.com/users/valeserber/repos","events_url":"https://api.github.com/users/valeserber/events{/privacy}","received_events_url":"https://api.github.com/users/valeserber/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T18:56:30Z","updated_at":"2018-02-20T18:56:30Z","author_association":"NONE","body":"@sergiomeza yes! :) "}}
{"actor":{"display_login":"valeserber"}}