lib_unity_purchase/Samples~/04 IntegratingSelfProvidedB...
刘涛 3b87d20391 全部提交 2024-01-29 18:49:33 +08:00
..
.sample.json 全部提交 2024-01-29 18:49:33 +08:00
IntegratingSelfProvidedBackendReceiptValidation.cs 全部提交 2024-01-29 18:49:33 +08:00
IntegratingSelfProvidedBackendReceiptValidation.cs.meta 全部提交 2024-01-29 18:49:33 +08:00
IntegratingSelfProvidedBackendReceiptValidation.unity 全部提交 2024-01-29 18:49:33 +08:00
IntegratingSelfProvidedBackendReceiptValidation.unity.meta 全部提交 2024-01-29 18:49:33 +08:00
README.md 全部提交 2024-01-29 18:49:33 +08:00
README.md.meta 全部提交 2024-01-29 18:49:33 +08:00

README.md

README - In-App Purchasing Sample Scenes - Integrating Self-Provided Backend Receipt Validation

In this sample, you will learn how to integrate your own backend validation with Unity IAP by using PurchaseProcessingResult.Pending and confirming the purchase later. For more information see the documentation on this topic.

This sample uses a mock for the backend implementation. You can plug in your own backend by replacing the MockServerSideValidation method in IntegratingSelfProvidedBackendReceiptValidation.cs. For more information about how to do a web request in unity, see the documentation.

This sample uses a fake store for its transactions, to use a real store like the App Store or the Google Play Store, you would need to register your application and add In-App Purchases. For more information, follow the documentation for one of our supported stores. Keep in mind that in this sample, product identifiers are kept in the IntegratingSelfProvidedBackendReceiptValidation.cs file.