Compare commits
2 Commits
67a045eae6
...
300f784f7d
Author | SHA1 | Date |
---|---|---|
|
300f784f7d | |
|
2e9a187935 |
|
@ -210,6 +210,7 @@ class ChargeService(
|
||||||
?: throw SodaException("로그인 정보를 확인해주세요.")
|
?: throw SodaException("로그인 정보를 확인해주세요.")
|
||||||
|
|
||||||
if (charge.payment!!.paymentGateway == PaymentGateway.GOOGLE_IAP) {
|
if (charge.payment!!.paymentGateway == PaymentGateway.GOOGLE_IAP) {
|
||||||
|
try {
|
||||||
androidPublisher.purchases().products()
|
androidPublisher.purchases().products()
|
||||||
.consume("kr.co.vividnext.sodalive", request.productId, request.purchaseToken)
|
.consume("kr.co.vividnext.sodalive", request.productId, request.purchaseToken)
|
||||||
.execute()
|
.execute()
|
||||||
|
@ -236,6 +237,10 @@ class ChargeService(
|
||||||
} else {
|
} else {
|
||||||
throw SodaException("결제정보에 오류가 있습니다.")
|
throw SodaException("결제정보에 오류가 있습니다.")
|
||||||
}
|
}
|
||||||
|
} catch (e: Exception) {
|
||||||
|
e.printStackTrace()
|
||||||
|
throw SodaException("결제정보에 오류가 있습니다.")
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
throw SodaException("결제정보에 오류가 있습니다.")
|
throw SodaException("결제정보에 오류가 있습니다.")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue