Payments service. This service provides an API to communicate with the Platform.
More...
Payments service. This service provides an API to communicate with the Platform.
◆ BeginPurchase()
Handles starting the coroutine to make the begin purchase request.
- Parameters
-
purchaseId | The id of the item the player wishes to purchase. |
◆ CancelPurchase()
Handles starting the coroutine to make the cancel purchase request.
- Parameters
-
txid | The id of the transaction the player wishes to cancel. |
◆ CompletePurchase()
This request is made after the provider has charged the player. It is used to verify the legitimacy of the purchase by verifying the receipt as well as completing the item fulfillment process.
- Parameters
-
transaction | The completed transaction. |
◆ FailPurchase()
Promise<EmptyResponse> Beamable.Api.Payments.PaymentService.FailPurchase |
( |
long |
txid, |
|
|
string |
reason |
|
) |
| |
|
inline |
Handles starting the coroutine to make the fail purchase request.
- Parameters
-
txid | The id of the transaction the player wishes to mark failed. |
reason | The reason the transaction failed |
◆ GetCouponsCount()
◆ GetOffers()
Get catalog from platform
◆ GetSKUs()
Get commerce SKUs from platform
◆ RedeemCoupon()
Attempts to consume a coupon to redeem an offer
- Parameters
-
purchaseId | The id of the item the player wishes to purchase. |
◆ Track()
Handles starting the coroutine to track a purchase request client-authoritatively Note: This is disabled by default, and requires the developer to enable it via the Portal.
- Parameters
-
trackPurchaseRequest | The request structure for tracking the purchase. |
The documentation for this class was generated from the following file:
- client/Packages/com.beamable/Runtime/Core/Platform/SDK/Payments/PaymentService.cs