Jusbrasil is a Brazilian company that provides the largest legal information platform in the world (Nº 1 on SimilarWeb), bringing legal information for 40M+ users per month.
Learn more about Jusbrasil:
Jusbrasil is a Brazilian company that provides the largest legal information platform in the world (Nº 1 on SimilarWeb), bringing legal information for 40M+ users per month.
Learn more about Jusbrasil:
I am unable to create transactions. When I try:
curl -XPOST --header "Content-Type: application/json" -d '{"amount": 100, "creditcard": { "number": 347318440718565, "issuer": "American Express", "expire_month": "03", "expire_year": "2020", "cvv": "012"}}' 'https://gtw1.rafaelverger.com.br/clients/5c715fdc98cb35650ca10fd8/transactions'
I have:
<pre>TypeError: Expected string input<br> at Object.luhn
This is good because CC_NUMBER should be string.
If I try:
curl -XPOST --header "Content-Type: application/json" -d '{"amount": 100, "creditcard": { "number": "347318440718565x", "issuer": "American Express", "expire_month": "03", "expire_year": "2020", "cvv": "012"}}' 'https://gtw1.rafaelverger.com.br/clients/5c715fdc98cb35650ca10fd8/transactions'
I have:
<pre>Error: Body has wrong data: [<br> "instance.creditcard does not conform to the \"cc\" format",<br> "instance.creditcard.number does not conform to the \"luhn\" format"<br>]
Again, this is good because CC_NUMBER is not matching luhn format
But, if try a good CC_NUMBER:
curl -XPOST --header "Content-Type: application/json" -d '{"amount": 100, "creditcard": { "number": "347318440718565", "issuer": "American Express", "expire_month": "03", "expire_year": "2020", "cvv": "012"}}' 'https://gtw1.rafaelverger.com.br/clients/5c715fdc98cb35650ca10fd8/transactions'
<pre>TypeError: Key must be a buffer<br> at TypeError (native)<br> at new Cipher (crypto.js:110:16)<br> at Object.Cipher (crypto.js:107:12)<br> at encryptCC (/home/rafaelverger/gtw1/app/cc.js:14:25)<br> at app.post (/home/rafaelverger/gtw1/app/transactions.js:88:33)<br> at Layer.handle [as handle_request] (/home/rafaelverger/gtw1/node_modules/express/lib/router/layer.js:95:5)<br> at next (/home/rafaelverger/gtw1/node_modules/express/lib/router/route.js:137:13)<br> at /home/rafaelverger/gtw1/server.js:18:7<br> at Layer.handle [as handle_request] (/home/rafaelverger/gtw1/node_modules/express/lib/router/layer.js:95:5)<br> at next (/home/rafaelverger/gtw1/node_modules/express/lib/router/route.js:137:13)</pre>
The same happens on Gateway 2 to create cards:
curl -XPOST --header "Content-Type: application/json" -d '{ "number": "347318440718565", "issuer": "American Express", "expire_month": "03", "expire_year": "2020", "cvv": "012"}' 'https://gtw2.rafaelverger.com.br/clients/5c7036b212ff8265301d64a1/cards'
<pre>TypeError: Key must be a buffer<br> at TypeError (native)<br> at new Cipher (crypto.js:110:16)<br> at Object.Cipher (crypto.js:107:12)<br> at encryptCC (/home/rafaelverger/gtw2/app/cc.js:18:25)<br> at app.post (/home/rafaelverger/gtw2/app/cc.js:125:33)<br> at Layer.handle [as handle_request] (/home/rafaelverger/gtw2/node_modules/express/lib/router/layer.js:95:5)<br> at next (/home/rafaelverger/gtw2/node_modules/express/lib/router/route.js:137:13)<br> at /home/rafaelverger/gtw2/server.js:18:7<br> at Layer.handle [as handle_request] (/home/rafaelverger/gtw2/node_modules/express/lib/router/layer.js:95:5)<br> at next (/home/rafaelverger/gtw2/node_modules/express/lib/router/route.js:137:13)</pre>
Quando serão abertas novas vagas para desenvolvedores frontend remoto?
If I try:
curl -XPOST --header "Content-Type: application/json" -d '{"first_name":"Test","last_name": "Anon", "email_address":"[email protected]"}' 'https://gtw1.rafaelverger.com.br/clients/'
I have:
<pre>Error: Body has wrong data: [<br> "instance.email is required"<br>]
This is good because I am sending email_address instead of email.
But, If I try:
curl -XPOST --header "Content-Type: application/json" -d '{"first_name":"Test","last_name": "Anon", "email":"[email protected]"}' 'https://gtw1.rafaelverger.com.br/clients/'
I have:
{"error":"An error has occurred"}
In node.js, I have the same issue. Is it an issue in the gateways?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.