Git Product home page Git Product logo

api-psp's People

Contributors

brunoflegler avatar

Watchers

 avatar

api-psp's Issues

The service must create the customer receivables (payables), with the following rules:

If the transaction is made with a debit card:

  • The payable must be created with status = paid (indicating that the customer has already received this value);
  • The payable must be created with the payment date (payment_date) = date the transaction was created (D + 0);

If the transaction is done with a credit card:

  • The payable should be created with status = waiting_funds (indicating that the customer will receive this money in the future)
  • The payable must be created with the payment date (payment_date) = transaction creation date + 30 days (D + 30).

Define structures

  • define structures

Transactions

Fields:

    value;
    description;
    method_payment;
    number_card;
    name_holder_card;
    expire_at_card;
    cvv_card;
    created_at;

Payables

Fields:

    status;
    payment_date;
    fee;

At the time of creating the payables you must also discount the processing fee

At the time of creating the payables you must also discount the processing fee (which we call the fee) of the customer. Ex: if the rate is 5% and the client processes a transaction of $ 100, he will only receive $ 95.00. Consider the following rates:

  • 3% for transactions made with a debit card;
  • 5% for transactions made with a credit card;

The card number is sensitive

  • Because the card number is sensitive information, the service can only store and return the last 4 digits of the card

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.