Merge pull request '구글 인 앱구매 검증' (#153) from test into main
Reviewed-on: #153
This commit is contained in:
commit
8c1b95dc97
|
@ -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