public class Payment
Modifier and Type | Method and Description |
---|---|
void |
getPurchaseHistory(java.lang.String status,
int page,
int limit,
java.lang.String type,
InPlayerCallback<java.util.List,com.sdk.inplayer.model.error.InPlayerException> callback)
Get all the Customer/Merchant subscription records
|
void |
validate(java.lang.String receipt,
java.lang.String productIdentifier,
InPlayerCallback<java.lang.String,com.sdk.inplayer.model.error.InPlayerException> callback)
Validates an In App purchase from Google Play store services
|
void |
validateByProductName(java.lang.String receipt,
java.lang.String productName,
InPlayerCallback<java.lang.String,com.sdk.inplayer.model.error.InPlayerException> callback)
Validates an In App purchase from Google Play store services
|
public void validate(@NotNull java.lang.String receipt, @NotNull java.lang.String productIdentifier, @NotNull InPlayerCallback<java.lang.String,com.sdk.inplayer.model.error.InPlayerException> callback)
Validates an In App purchase from Google Play store services
receipt
- String The Purchase object from Google Play response after a successful purchaseproductIdentifier
- String Product identifier in a format itemId_accessFeeIdcallback
- InPlayerCallbackpublic void validateByProductName(@NotNull java.lang.String receipt, @NotNull java.lang.String productName, @NotNull InPlayerCallback<java.lang.String,com.sdk.inplayer.model.error.InPlayerException> callback)
Validates an In App purchase from Google Play store services
receipt
- String The Purchase object from Google Play response after a successful purchaseproductName
- String Product Namecallback
- InPlayerCallbackpublic void getPurchaseHistory(@NotNull java.lang.String status, int page, int limit, @Nullable java.lang.String type, @NotNull InPlayerCallback<java.util.List,com.sdk.inplayer.model.error.InPlayerException> callback)
Get all the Customer/Merchant subscription records
status
- The status of the purchase - (all, active, inactive)page
- The current pagelimit
- The number of items per page