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 /
  • API and SDK Questions /
avatar image
Question by matth · Jan 28, 2021 at 12:05 AM · In-Game EconomyPartner Add-onswebhooks

Xsolla Purchasing Webhook issue

We have been unable to get the Xsolla Store SDK to play nice with Playfab for in-game purchases. Although the purchase is started and completed in the Xsolla web popup, the Playfab purchase is stuck on CreateCart. The purchase steps taken are:

  • Call PlayFabClientAPI.StartPurchase to get the order ID
  • Call Xsolla's cloudscript CreatePaystationToken to get the Xsolla Store token
  • Call XsollaStore.Instance.ItemPurchase, and XsollaStore.Instance.OpenPurchaseUI
  • Fulfill the purchase in their browser
  • Call XsollaStore.Instance.ProcessOrder on the order ID
  • Although Xsolla reports that the transaction is complete, Playfab doesn't get a response, and the transaction status stays as CreateCart.


Is there something we have missed in setting up our purchasing? I have added the XsollaConfirm webhook for playfab but it seems like Playfab does not get any response from Xsolla about the transaction.

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 matth · Jan 28, 2021 at 03:06 AM 0
Share

It looks like the webhook that I scrounged from other PlayFab forum posts (https://{{TitleID}}.playfabapi.com/ThirdPartyPayments/XsollaConfirm) isn't responding.

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by SethDu · Jan 28, 2021 at 06:56 AM

Xsolla has a different payment procedure from other non-receipt payments. Have you checked and followed the instructions from the official documentation? -- Accepting Payments with Xsolla

Comment

People who like this

0 Show 4 · Share
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 matth · Jan 31, 2021 at 10:48 PM 0
Share

Yes, I have followed that documentation completely. Xsolla support has let us know that there is an issue with the syncronisation of Xsolla inventory and PlayFab inventory.

avatar image SethDu ♦ matth · Feb 01, 2021 at 08:15 AM 0
Share

Is it caused by item ID mismatch? Please let us know if you need any help.

avatar image matth SethDu ♦ · Feb 01, 2021 at 11:11 PM 0
Share

No, our ids were correct across playfab and xsolla, it appears to be some issue with the callback from the xsolla purchasing system to playfab through the webhook. The webhook does get called, but there is no synchronisation of the purchased items on the playfab account.
We have decided to go down a slightly different route but I would say there is some issue either with the Xsolla add on in Playfab, or the webhook response. Testing the webhook from the xsolla backend failed every time.

Show more comments

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

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    Issue with ValidateGooglePlayPurchase 1 Answer

    iOS Reciept Validation Failed - Request Timeout 16 Answers

    Paypal overlay for Unity games 1 Answer

    I'm making a payment system using XSolla and playfab in unity, to get started, I have to use which facility? Pay Station or Store? 1 Answer

    PayPal real money purchases on Android / iOS 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