PurchasesSubscriptions
class PurchasesSubscriptions extends Resource (View source)
The "subscriptions" collection of methods.
Typical usage is:
$androidpublisherService = new Google\Service\AndroidPublisher(...);
$subscriptions = $androidpublisherService->purchases_subscriptions;
Methods
Acknowledges a subscription purchase. (subscriptions.acknowledge)
Cancels a user's subscription purchase. The subscription remains valid until its expiration time. (subscriptions.cancel)
Defers a user's subscription purchase until a specified future expiration time. (subscriptions.defer)
Checks whether a user's subscription purchase is valid and returns its expiry time. (subscriptions.get)
Refunds a user's subscription purchase, but the subscription remains valid until its expiration time and it will continue to recur.
Refunds and immediately revokes a user's subscription purchase. Access to the subscription will be terminated immediately and it will stop recurring.
Details
acknowledge(string $packageName, string $subscriptionId, string $token, SubscriptionPurchasesAcknowledgeRequest $postBody, array $optParams = [])
Acknowledges a subscription purchase. (subscriptions.acknowledge)
cancel(string $packageName, string $subscriptionId, string $token, array $optParams = [])
Cancels a user's subscription purchase. The subscription remains valid until its expiration time. (subscriptions.cancel)
SubscriptionPurchasesDeferResponse
defer(string $packageName, string $subscriptionId, string $token, SubscriptionPurchasesDeferRequest $postBody, array $optParams = [])
Defers a user's subscription purchase until a specified future expiration time. (subscriptions.defer)
SubscriptionPurchase
get(string $packageName, string $subscriptionId, string $token, array $optParams = [])
Checks whether a user's subscription purchase is valid and returns its expiry time. (subscriptions.get)
refund(string $packageName, string $subscriptionId, string $token, array $optParams = [])
Refunds a user's subscription purchase, but the subscription remains valid until its expiration time and it will continue to recur.
(subscriptions.refund)
revoke(string $packageName, string $subscriptionId, string $token, array $optParams = [])
Refunds and immediately revokes a user's subscription purchase. Access to the subscription will be terminated immediately and it will stop recurring.
(subscriptions.revoke)