|
před 1 rokem | |
---|---|---|
.. | ||
.sample.json | před 1 rokem | |
HandlingDeferredPurchases.cs | před 1 rokem | |
HandlingDeferredPurchases.cs.meta | před 1 rokem | |
HandlingDeferredPurchases.unity | před 1 rokem | |
HandlingDeferredPurchases.unity.meta | před 1 rokem | |
README.md | před 1 rokem | |
README.md.meta | před 1 rokem | |
UserWarningGooglePlayStore.cs | před 1 rokem | |
UserWarningGooglePlayStore.cs.meta | před 1 rokem |
This sample showcases how to handle deferred purchases using the IGooglePlayConfiguration.SetDeferredPurchaseListener
and the GooglePlayStoreExtensions.IsPurchasedProductDeferred
APIs.
InAppPurchasing game object > CHandling Deferred Purchases script > Gold Product Id field
or change the goldProductId
field in the HandlingDeferredPurchases.cs
script.Android
and make sure the GooglePlayStore
is selected*.Services > In-App Purchasing > Configure
and changing the Current Targeted Store
field.From Google’s documentation:
Google Play supports deferred transactions, or transactions that require one or more additional steps between when a user initiates a purchase and when the payment method for the purchase is processed. Your app should not grant entitlement to these types of purchases until Google notifies you that the user’s payment method was successfully charged.
For example, a user can create a deferred purchase of an in-app item by choosing cash as their form of payment. The user can then choose a physical store where they will complete the transaction and receive a code through both notification and email. When the user arrives at the physical store, they can redeem the code with the cashier and pay with cash. Google then notifies both you and the user that cash has been received. Your app can then grant entitlement to the user.