Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

결제 처리 방식과 이에 대한 DB 설계 방법 #2

Open
RTUnu12 opened this issue May 9, 2024 · 2 comments
Open

결제 처리 방식과 이에 대한 DB 설계 방법 #2

RTUnu12 opened this issue May 9, 2024 · 2 comments

Comments

@RTUnu12
Copy link
Member

RTUnu12 commented May 9, 2024

주요 이슈 : DB에 결제 API로부터 받은 정보인 입금자 명과 입금 금액을 저장할 필드를 만들 것인가?

문제점 : API가 입금자명과 입금금액을 실시간으로 보내는지, 아니면 이전 데이터를 포함해서 보내는지 모름

만약 이전 데이터를 포함해서 보내주면 다음 처리방식이 가능
프론트에서 주문할 것들 주문하기
-> DB의 주문 테이블에 저장
-> 거기서 계좌 뜨고 보내면
-> 서버가 이 결제 정보와 주문 테이블을 조합해서 프론트로 전달
즉, 필드를 따로 지정하지 않아도 됨

둘 중 어느 방법이 더 좋을까요?

Image

@RTUnu12 RTUnu12 added this to UFO May 9, 2024
@RTUnu12 RTUnu12 converted this from a draft issue May 9, 2024
@hojin535
Copy link
Member

hojin535 commented May 9, 2024

백엔드에서 API로 받은 정보를 저장한 후 프론트가 서버와 통신하여 데이터를 받아 쓰면 해결 될 것 같습니다.

@RTUnu12 RTUnu12 moved this from Todo to In Progress in UFO May 9, 2024
@RTUnu12
Copy link
Member Author

RTUnu12 commented May 9, 2024

좋은 생각이네요. 직접 해봐야겠어요.

@RTUnu12 RTUnu12 removed this from UFO May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants