Giter VIP home page Giter VIP logo

euplatesc's Introduction

Conventional Commits

Hi there 👋, Vlad here.

I'm a Software Engineer, and I live in Cluj-Napoca, Romania.
🏔 I like reading, hiking, traveling, preparing BBQs for my dear ones, solving sudokus and puzzles, and since my 16s, programming has been one of my hobbies.
🔭 Currently, I'm freelancing, and I work on projects mainly with (not in a specific order) Node.js, TypeScript, NextJS, ReactJS, NestJS, Neo4j, MongoDB, MySQL, PostgreSQL, SQLite, WordPress and PHP.
❤️‍🔥 I like NextJS and TailwindCSS (below there are some projects built with these technologies) and use solutions like Supabase, Prisma, and Vercel very often. I also have a released library (euplatesc) on npmjs.org.

🇷🇴 I'm a WordPress translator at WP-Translations.PRO and General Translation Editor at WordPress.
👨🏼‍💻 I'm looking to collaborate on projects for the long term, especially with JavaScript.

These days...
💻 I'm learning some things about JavaScript.
📖 I'm reading "The Intelligent Investor" by Benjamin Graham and a few more.

💬 Ask me anything about WordPress.

Some of my newest projects:

TEDxZorilor | E-BikeRent | GraphStars | BookTruck | ContaDocs | TransilvaniaCar

📫 You can reach me by email at ${hello} @ ${vladilie.ro}.

You can also follow me on these links:

My website | Polywork | Twitter | LinkedIn | WordPress.

Here are some stats about my GitHub activity:

euplatesc's People

Contributors

vladutilie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

euplatesc's Issues

Thank you 💯

Thank you, this is very helpful and really well documented 👍
If euplatesc didn't pay for it, they should.

checkResponse returneaza invalid

Salut,

Recent checkResponse a inceput sa returneze { success: false, response: 'invalid' }, cu toate ca totul ar trebui sa fie ok.

A trecut aproximativ o luna de cand am deschis proiectul la care lucrez ultima oara, dar imi amintesc ca atunci totul functiona ok. Nu stiu daca s-a schimbat ceva cu API-ul EuPlatesc sau nu, dar de asemenea nu imi imaginez ca ar face breaking changes.

In orice caz, uite codul meu

app.post("/success", (req, res) => {
    const response = euplatesc.checkResponse({
        amount: req.body.amount,
        currency: req.body.curr,
        invoiceId: req.body.invoice_id,
        epId: req.body.ep_id,
        merchantId: req.body.merch_id,
        action: req.body.action,
        message: req.body.message,
        approval: req.body.approval,
        timestamp: req.body.timestamp,
        nonce: req.body.nonce,
        fpHash: req.body.fp_hash,
    });
    console.log(req.body);
    console.log(response);
    res.sendStatus(200);
});

Este destul de self-explanatory, pur si simplu iau valorile returnate de callback-ul EuPlatesc si le dau mai departe la checkResponse. Cu toate astea, rezultatul primit este invalid.

{
  amount: '1.00',
  curr: 'RON',
  invoice_id: '...',
  ep_id: '...',
  merch_id: 'testaccount',
  action: '0',
  message: 'Approved',
  approval: 'tstcrd',
  timestamp: '20240524103846',
  nonce: '...',
  email: '...',
  fp_hash: '...',
  ExtraData: {
    successurl: 'http://localhost:3000/success',
    backtosite: 'http://localhost:3000',
    backtosite_method: 'get'
  },
  gatewayoption: '1'
}
{ success: false, response: 'invalid' }

In cazul asta, eu folosesc raspunsul returnat de client prin successurl, in loc sa folosesc apelul S2S trimis de EuPlatesc, dar oricum din cate stiu acestea doua ar trebui sa fie identice.

In setarile profilului am setat versiunea hash-ului la MD5. Am vazut ca asta se foloseste in codul librariei. Nu stiu daca SHA256 e suportat sau nu.

Problema cu checkResponse

Salut, cand folosesc checkResponse cu detaliile din req.body primite din POST-ul de callback de la euplatesc, mereu raspunsul este:
{ success: false, response: 'invalid' }

Am folosit cardurile "Approved" recomandate de tine.

req.body pare in regula si pot accesa parametrii:

[Object: null prototype] {
  amount: '10.34',
  curr: 'RON',
  invoice_id: '22127',
  ep_id: 'B05420826C5194A96FF142BB043B753C97D30A69',
  merch_id: 'testaccount',
  action: '0',
  message: 'Approved',
  approval: 'tstcrd',
  timestamp: '20230713065305',
  nonce: 'a835a1c191028f813878e567484442e3',
  fp_hash: 'DBA32292AACEB09FF3E3AC0DF1B6F61C',
  'ExtraData[silenturl]': 'https://artadent.ro/paymentcb',
  'ExtraData[successurl]': 'https://artadent.ro/reply'
}

Poate sa fie problema ca e cont de test?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.