구글 인 앱구매 검증
- 충전 이벤트가 private method consumeWithRetry 에 구현되어 있어서 실행되지 않던 현상 수정
This commit is contained in:
parent
6b7b3efcb1
commit
ccf8b0220e
|
@ -237,6 +237,13 @@ class ChargeService(
|
|||
charge.payment!!.status == PaymentStatus.REQUEST
|
||||
) {
|
||||
consumeWithRetry(productId, purchaseToken, charge, member)
|
||||
|
||||
applicationEventPublisher.publishEvent(
|
||||
ChargeSpringEvent(
|
||||
chargeId = charge.id!!,
|
||||
memberId = member.id!!
|
||||
)
|
||||
)
|
||||
} else {
|
||||
throw SodaException("결제정보에 오류가 있습니다.")
|
||||
}
|
||||
|
@ -262,13 +269,6 @@ class ChargeService(
|
|||
charge.payment!!.status = PaymentStatus.COMPLETE
|
||||
member.charge(charge.chargeCan, 0, "aos")
|
||||
|
||||
applicationEventPublisher.publishEvent(
|
||||
ChargeSpringEvent(
|
||||
chargeId = charge.id!!,
|
||||
memberId = member.id!!
|
||||
)
|
||||
)
|
||||
|
||||
return
|
||||
} catch (e: Exception) {
|
||||
lastError = e
|
||||
|
|
Loading…
Reference in New Issue