Skip to content

Commit

Permalink
Merge pull request #157 from Next-Room/feature/validate-acknowledgement
Browse files Browse the repository at this point in the history
[CHORE] ACKNOWLEDGEMENT_STATE_ACKNOWLEDGED ์ƒ์ˆ˜๋กœ ๋ณ€๊ฒฝ
  • Loading branch information
eunsol-an authored Dec 29, 2024
2 parents cfdb518 + 7b0b8d1 commit 6d1038b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
@Component
public class AndroidPurchaseUtils {

private static final String ACKNOWLEDGEMENT_STATE_ACKNOWLEDGED = "ACKNOWLEDGEMENT_STATE_ACKNOWLEDGED";
private final String profile;
private final String packageName;
private final GoogleCredentials credentials;
Expand Down Expand Up @@ -73,7 +74,7 @@ public SubscriptionPurchaseV2 verifyPurchase(String purchaseToken) {
SubscriptionPurchaseV2 subscriptionPurchaseV2 = getSubscriptionPurchase(purchaseToken);

// ์ด๋ฏธ ์ƒํ’ˆ ์Šน์ธ์ด ๋œ ๊ฒฝ์šฐ
if (subscriptionPurchaseV2.getAcknowledgementState().equals("ACKNOWLEDGEMENT_STATE_ACKNOWLEDGED")) {
if (subscriptionPurchaseV2.getAcknowledgementState().equals(ACKNOWLEDGEMENT_STATE_ACKNOWLEDGED)) {
throw new CustomException(ALREADY_ACKNOWLEDGED);
}

Expand Down

0 comments on commit 6d1038b

Please sign in to comment.