Skip to content

Commit

Permalink
move isPriceChangeConfirmation flag check
Browse files Browse the repository at this point in the history
  • Loading branch information
orbital17 committed Jul 24, 2024
1 parent 058ac85 commit 77234df
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
fail("Could not parse SKU.");
return;
}
if (mMethodData.isPriceChangeConfirmation) {
fail("Price change confirmation flow is not supported");
}

/**
* Note that we have temporarily disabled the IMMEDIATE_WITHOUT_PRORATION mode
Expand Down Expand Up @@ -114,15 +117,7 @@ private void onSkusQueried(BillingResult result, List<SkuDetails> skus) {

SkuDetails sku = skus.get(0);

if (mMethodData.isPriceChangeConfirmation) {
launchPriceChangeConfirmationFlow(sku);
} else {
launchPaymentFlow(sku);
}
}

private void launchPriceChangeConfirmationFlow(SkuDetails sku) {
fail("Price change confirmation flow is not supported");
launchPaymentFlow(sku);
}

private void launchPaymentFlow(SkuDetails sku) {
Expand Down

0 comments on commit 77234df

Please sign in to comment.