Giter VIP home page Giter VIP logo

Comments (5)

huycozy avatar huycozy commented on June 16, 2024

Hi @Pratiksha0796
I checked this using package example with the modification as above to print out the verificationData but I can get the decoded data without error.

What is your current in_app_purchase package version? And which platform are you getting the issue? (Android, iOS, macOS).

Please share the entire error trace if any. Thanks!

from flutter.

Pratiksha0796 avatar Pratiksha0796 commented on June 16, 2024

Hi @huycozy , Thanks for your response.
I'm using in_app_purchase: ^3.1.13 and this is the only one error I'm getting for iOS

Unexpected character (at character 1)
MII8kQYJKoZIhvcNAQcCoII8gjCCPH4CAQExDzANBglghkgBZQMEAgEFADCCK8cGCSqGSIb3DQE...
I'm testing in-app subscription with sandbox tester on physical device.

from flutter.

Pratiksha0796 avatar Pratiksha0796 commented on June 16, 2024

Hi @huycozy
Why I'm getting this type of response for purchaseDetails.verificationData.localVerificationData
response is something like this
MIJ27wYJKoZIhvcNAQcCoIJ24DCCdtwCAQExDzANBglghkgBZQMEAgEFADCCZiUGCSqGSIb3DQEHAaCCZhYEgmYSMYJmDjAKAgEIAgEBBAIWADAKAgEUAgEBBAIMADALAgEBAgEBBAMCAQAwCwIBCwIBAQQDAgEAMAsCAQ8CAQEEAwIBADALAgEQAgEBBAMCAQAwCwIBGQIBAQQDAgEDMAwCAQoCAQEEBBYCNCswDAIBDgIBAQQEAgIAnTANAgEDAgEBBAUMAzEwNjANAgENAgEBBAUC

Response should be something like - {"orderId":"GPA.3365-7685-1898-54077","packageName":"com.inapptest.net","productId":"testproductid","purchaseTime":1658121156026,"purchaseState":0,"purchaseToken":"kgfemgbkacejamjnmafadmnj.AO-J1Oz9_C62j3NyNe4FPFCHpFIZI2KXfm2JTrl4NE7k4x7Elroi49kJln7Ch1J6bFTMvDe2d8rLvRbJ9tugbQR5lM0Ny8_CKA","acknowledged":false}

from flutter.

huycozy avatar huycozy commented on June 16, 2024

My IAP setup on iOS has another issue so I can't check this currently. Could you try upgrading the package to the latest version and retry? Since you have this issue on iOS, please make sure the latest version is in_app_purchase_storekit: ^0.3.16 (you can check the version from pubspec.lock file).

from flutter.

Pratiksha0796 avatar Pratiksha0796 commented on June 16, 2024

@huycozy I'm already using latest version of package and using in_app_purchase_storekit: ^0.3.16

from flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.