구글 인 앱구매 검증 #153

Merged
klaus merged 1 commits from test into main 2024-03-28 17:13:58 +00:00
1 changed files with 7 additions and 7 deletions

View File

@ -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