Compare commits
2 Commits
fb5641343e
...
8c1b95dc97
Author | SHA1 | Date |
---|---|---|
|
8c1b95dc97 | |
|
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