Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • Bugs /
avatar image
Question by Kim Seon-ho · Sep 03, 2019 at 08:26 AM · apisPlayer DataPlayer Inventorysupport

Item provides not happening even after using Playfab payment API

Hi team,

we use Playfab payment API but at times, we find its happened that items were not provided accordingly.

Project ID : D4D8

Code we're writing is as follows:

public PurchaseProcessingResult ProcessPurchase(PurchaseEventArgs e)

{

...Other Script...

PlayFabClientAPI.ValidateGooglePlayPurchase(new ValidateGooglePlayPurchaseRequest()

{

// Pass in currency code in ISO format 

CurrencyCode = e.purchasedProduct.metadata.isoCurrencyCode, 

// Convert and set Purchase price 

PurchasePrice = (uint)(e.purchasedProduct.metadata.localizedPrice * 100), 

// Pass in the receipt 

ReceiptJson = googleReceipt.PayloadData.json, 

// Pass in the signature 

Signature = googleReceipt.PayloadData.signature 

},

result =>

{

Debug.Log("Validation successful!"); 
…InApp PurchaseUI Complete Script... 

},

error =>

{

Debug.Log("Validation failed: " + error.GenerateErrorReport()); 
…InApp PurchaseUI Complete Script... 

});
}

When using [PlayFabClientAPI.ValidateGooglePlayPurchase], we were able to see that item purchased(paid for) has been provided in to [Inventory] of the [Title Player].
However, what we're trying to say of is that [result =>, error =>] doesn't perform.

Items paid for(purchased) are provided normally to most of users, but the issue we've mentioned keep happening only to certain users over and over.
We would like to know the reason WHY and HOW to solve this problem.

Unity 3D version : 2018.3.12 ~ 2019.2.2f1
Unity IAP in use
PlayFab SDK version : up to date, at all times

Comment

People who like this

0 Show 1
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SethDu ♦ · Sep 03, 2019 at 09:53 AM 0
Share

May I ask what do you mean by "[result =>, error =>] doesn't perform" ? If ValidateGooglePlayPurchase is called, either success callback or fail callback will be returned. Can you confirm that this API has been sent successfully?

You may also keep a copy of details in ValidateGooglePlayPurchaseRequest and try to manually send it via RESTful API testing tools like Postman. Any reproductions, information about title ID, player ID will be helpful.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Currency not supported by provider. 1 Answer

    Empty Custom data for item instances 1 Answer

    GetCatalogItems returns empty properties (discarded in the past) 1 Answer

    title_player_account PlayFabId does not work with cloud script 1 Answer

    UpdatePlayerStatistics misleading error when Value is not int32 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges