careers's People
Forkers
rodbarreto rafael-vitor thicodes ribeiroevandro enieber emersonfarias igormaineti viniciusvts joaovillas josemalcher edsmcosta pablolopesk8 devssa rafaelnevez felipedeamonteiro lucasfonsecads brennomello matheusriios inspiradanacomputacao danielfb88 davimonteiro7careers's Issues
[payment-challenge.md] Gateway failing to create transactions
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>
What is the challenge for the fullstack internship position?
Dúvida sobre vagas frontend
Quando serão abertas novas vagas para desenvolvedores frontend remoto?
An error has occurred when I try to POST to gwt1 or gwt2
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?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.