Skip to content

Commit

Permalink
Fix: #207 인앱 결제 서비스 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJae-H committed Dec 4, 2024
1 parent 4dc0356 commit 54377b1
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,7 @@ public Boolean validateReceipt(Long userId, PurchaseRequestDto purchaseRequestDt
builder = new AndroidPublisher.Builder(httpTransport, JSON_FACTORY, new HttpCredentialsAdapter(credentials));

AndroidPublisher publisher = null;
try {
publisher = builder.setApplicationName(googleApplicationPackageName).build();
AndroidPublisher.Purchases.Products.Get gas = publisher.purchases()
.products()
.get(
"packageName",
"productId",
"purchaseToken");
ProductPurchase purchase = gas.execute();
} catch (IOException e4) {
throw ExpectedException.withLogging(ResponseCode.UserDeactivated, e4);
}
publisher = builder.setApplicationName(googleApplicationPackageName).build();

try {
AndroidPublisher.Purchases.Products.Get get = publisher.purchases().products()
Expand Down

0 comments on commit 54377b1

Please sign in to comment.