구글 인 앱 결제 검증 수정

- 현재 : 구매상태 확인 후 충전 완료 처리
- 수정 : 구매상태와 소비상태를 확인 후 소비되지 않았으면 소비 후 충전 완료 처리
This commit is contained in:
Klaus 2024-03-22 18:42:47 +09:00
parent d17f76261e
commit df690dae0e
1 changed files with 0 additions and 3 deletions

View File

@ -213,7 +213,6 @@ class ChargeService(
val response = androidPublisher.purchases().products()
.get("kr.co.vividnext.sodalive", request.productId, request.purchaseToken)
.execute() ?: throw SodaException("결제정보에 오류가 있습니다.")
if (
response.purchaseState == 0 &&
response.consumptionState == 0 &&
@ -233,8 +232,6 @@ class ChargeService(
memberId = member.id!!
)
)
} else {
throw SodaException("결제정보에 오류가 있습니다.")
}
} else {
throw SodaException("결제정보에 오류가 있습니다.")