Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with users paying via combini (Japan) #147779

Open
ZeroToNine09 opened this issue May 3, 2024 · 1 comment
Open

Problem with users paying via combini (Japan) #147779

ZeroToNine09 opened this issue May 3, 2024 · 1 comment
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@ZeroToNine09
Copy link

ZeroToNine09 commented May 3, 2024

Steps to reproduce

I have a problem with users paying via combini (Japan).
Those who pay via combini will then be automatically refunded by Google Play.
It seems that after changing the payment status to PurchaseStatus.purchased, it does not run to the logic of unlock feature.

I tested with the case slow test card according to the link below.
https://developer.android.com/google/play/billing/test#pending-purchases
And see the processing working normally.

I think the behavior of paying via combini is similar to slow test card.

Expected results

After changing the payment status to PurchaseStatus.purchased, it should run to the logic of unlock feature.

Actual results

It seems that after changing the payment status to PurchaseStatus.purchased, it does not run to the logic of unlock feature.

Code sample

final Stream purchaseUpdated = InAppPurchase.instance.purchaseStream;
_subscription = purchaseUpdated.listen((purchaseDetailsList) {
    purchaseDetailsList.forEach((PurchaseDetails purchaseDetails) async {
      if (purchaseDetails.status == PurchaseStatus.pending) {
        // Update UI and return
        return;
      }

      if (purchaseDetails.status == PurchaseStatus.purchased || purchaseDetails.status == PurchaseStatus.restored) {
        // Handle receipt and unlock feature

        if (purchaseDetails.pendingCompletePurchase) {
          await InAppPurchase.instance.completePurchase(purchaseDetails);
        }
        return;
      }

        // Handle for others PurchaseStatus
  }, onDone: () {
    _subscription.cancel();
  }, onError: (error) {
      // Handle error
    }
  });

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]
@huycozy huycozy added the in triage Presently being triaged by the triage team label May 6, 2024
@huycozy
Copy link
Member

huycozy commented May 6, 2024

Hi @ZeroToNine09
As my understanding, combini is a convenience store and assume that they support Google Play purchase on POS machine that runs Android OS, correct?

Could you check this on Android mobile device to see any different results?

For us to further investigate this issue, please provide a completed and minimal reproducible code sample that doesn’t include 3rd party plugins or complex production code. Also, please provide the version of package you are using. Thanks!

@huycozy huycozy added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests

2 participants