Git Product home page Git Product logo

transaction's People

Contributors

doublemetal avatar

Watchers

 avatar  avatar

transaction's Issues

부분 취소 기능 구현

  • 취소가 가능한지 체크하고 취소 처리
  • 취소가 가능할때까지 가능
  • 카드사 호출은 항상 성공이기 때문에 결제가 가능한지는 체크할 수 없음

테이블 설계

    @Id
    @Column(length = 20)
    private String transactionId; // 거래시간 + Sequence
    @Column(length = 450)
    private String rawData; // 카드사에 전송하는 string 데이터
    @Column(length = 20)
    private String originalTransactionId; // 취소의 원거래번호
    @Column(length = 10)
    private TransactionType transactionType; // 거래유형

    @Column(length = 20)
    private String cardNumber; // 카드번호, 10 ~ 20
    @Column(length = 300)
    private String encryptedCardNumber; // 암호화한 카드번호, 300자

    @Column(length = 4)
    private String period; // 유효기간(4자리 숫자, mmyy)
    private String month; // 할부개월수, 0(일시불), 1 ~ 12, 취소는 일시불(00)으로 저장
    private String cvc; // cvc(3자리 숫자)

    private BigDecimal payAmount; // 거래금액(100원 이상, 10억원 이하, 숫자), 취소는 결제 금액보다 작아야함
    private BigDecimal vat; // 부가가치세, 거래금액보다 작아야함, 취소는 원거래와 취소의 부가가치세가 같아야함

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.