Search Unity

Getting platform specific data?

Discussion in 'Unity IAP' started by andymads, Sep 14, 2017.

  1. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    When using individual store plugins for IAPs we have access to data not accessible via Unity IAP. How do we get this if we switch to Unity IAP?

    E.g.
    On Google V2 we get an object of type GooglePurchase after a successful purchase. This object has fields named signature and originalJson which we send to AppsFlyer for receipt validation.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
  3. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    Why not have this as part of the extensions functionality?

    e.g.

    var signature = extensions.GetExtension<IGoogleExtensions>().GetSignature(receipt);