Idea

Maxim Epishev avatar image
Maxim Epishev suggested

Improvement of the add-on "Apple" and PlayFabClientApi for validation of purchases for MacOSX.

Unfortunately, at the moment, there is no way to validate purchases on MacOSX if the project already uses the "Apple" add-on, since the validation uses the "iOS App Bundle ID" and "iOS App Shared" fields, which are required for validation on iOS builds.Unfortunately, at the moment, there is no way to validate purchases on MacOSX if the project already uses the "Apple" add-on, since the validation uses the "iOS App Bundle ID" and "iOS App Shared" fields, which are required for validation on iOS builds. If the Apple add-on is disabled or when filling in the iOS App Bundle ID and iOS App Shared fields with data from the application page on the Mac App Store, the validation of purchases is successful. It would be very convenient if you expanded the add-on "Apple" and added a separate method for validation on MacOSX to PlayFabClientApi, similar to the ValidateIOSReceipt method.

Thanks in advance!

apisunity3dIn-Game EconomyPartner Add-ons
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

2 Comments

·
brendan avatar image
brendan commented

Please use the technique described in this post: https://stackoverflow.com/questions/7598047/online-receipt-validation-for-mac-app-store-in-app-purchases

Apple Mac OS receipts are processed the same way as iTunes receipts, you just need to base 64 encode the receipt. The Shared Secret for an iTunes app is only used for validation of subscriptions (it's the password), and all Apple purchase receipts have the Bundle ID for your project - that's how it's defined in their store.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Andrey avatar image Andrey commented ·

Hello. We already successfully make purchases, but on different projects. The problem is that using one project on PlayFab, we cannot make purchases simultaneously with both MacOSX and IOS. This seems to be due to the fact that the "Bundle Id" field of the application for MacOSX and iOS is different. We checked our guesses using a copy of our main project, and the purchase on MacOSX was validated successfully, but it was worth adding the add-on “Apple” to the project on PlayFab and filling in the fields “iOS App Bundle ID” and “iOS App Shared”, purchases on MacOSX stopped validating, but everything worked fine on iOS. We plan to use a subscription in our project, because we can’t just refuse to use the add-on "Apple", but when using it we can’t validate the purchase on the MacOSX build for the Mac App Store.

Thanks in advance!

5 Likes 5 ·
Andrey avatar image
Andrey commented

Hello. We already successfully make purchases, but on different projects. The problem is that using one project on PlayFab, we cannot make purchases simultaneously with both MacOSX and IOS. This seems to be due to the fact that the "Bundle Id" field of the application for MacOSX and iOS is different. We checked our guesses using a copy of our main project, and the purchase on MacOSX was validated successfully, but it was worth adding the add-on “Apple” to the project on PlayFab and filling in the fields “iOS App Bundle ID” and “iOS App Shared”, purchases on MacOSX stopped validating, but everything worked fine on iOS. We plan to use a subscription in our project, because we can’t just refuse to use the add-on "Apple", but when using it we can’t validate the purchase on the MacOSX build for the Mac App Store.

Thanks in advance!

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write a Comment

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.