Class Google_Service_AndroidPublisher_PurchasesSubscriptions_Resource
The "subscriptions" collection of methods. Typical usage is:
$androidpublisherService = new Google_Service_AndroidPublisher(...);
$subscriptions = $androidpublisherService->subscriptions;
-
Google_Service_Resource
-
Google_Service_AndroidPublisher_PurchasesSubscriptions_Resource
Located at AndroidPublisher.php
Methods summary
public
|
#
acknowledge( string $packageName, string $subscriptionId, string $token, Google_Service_AndroidPublisher_SubscriptionPurchasesAcknowledgeRequest $postBody, array $optParams = array() )
Acknowledges a subscription purchase. (subscriptions.acknowledge)
Acknowledges a subscription purchase. (subscriptions.acknowledge)
Parameters
- $packageName
- The package name of the application for which this subscription was purchased
(for example, 'com.some.thing').
- $subscriptionId
- The purchased subscription ID (for example, 'monthly001').
- $token
- The token provided to the user's device when the subscription was purchased.
- $postBody
- $optParams
- Optional parameters.
|
public
|
#
cancel( string $packageName, string $subscriptionId, string $token, array $optParams = array() )
Cancels a user's subscription purchase. The subscription remains valid until
its expiration time. (subscriptions.cancel)
Cancels a user's subscription purchase. The subscription remains valid until
its expiration time. (subscriptions.cancel)
Parameters
- $packageName
- The package name of the application for which this subscription was purchased
(for example, 'com.some.thing').
- $subscriptionId
- The purchased subscription ID (for example, 'monthly001').
- $token
- The token provided to the user's device when the subscription was purchased.
- $optParams
- Optional parameters.
|
public
Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse
|
#
defer( string $packageName, string $subscriptionId, string $token, Google_Service_AndroidPublisher_SubscriptionPurchasesDeferRequest $postBody, array $optParams = array() )
Defers a user's subscription purchase until a specified future expiration
time. (subscriptions.defer)
Defers a user's subscription purchase until a specified future expiration
time. (subscriptions.defer)
Parameters
- $packageName
- The package name of the application for which this subscription was purchased
(for example, 'com.some.thing').
- $subscriptionId
- The purchased subscription ID (for example, 'monthly001').
- $token
- The token provided to the user's device when the subscription was purchased.
- $postBody
- $optParams
- Optional parameters.
Returns
|
public
Google_Service_AndroidPublisher_SubscriptionPurchase
|
#
get( string $packageName, string $subscriptionId, string $token, array $optParams = array() )
Checks whether a user's subscription purchase is valid and returns its expiry
time. (subscriptions.get)
Checks whether a user's subscription purchase is valid and returns its expiry
time. (subscriptions.get)
Parameters
- $packageName
- The package name of the application for which this subscription was purchased
(for example, 'com.some.thing').
- $subscriptionId
- The purchased subscription ID (for example, 'monthly001').
- $token
- The token provided to the user's device when the subscription was purchased.
- $optParams
- Optional parameters.
Returns
|
public
|
#
refund( string $packageName, string $subscriptionId, string $token, array $optParams = array() )
Refunds a user's subscription purchase, but the subscription remains valid
until its expiration time and it will continue to recur.
(subscriptions.refund)
Refunds a user's subscription purchase, but the subscription remains valid
until its expiration time and it will continue to recur.
(subscriptions.refund)
Parameters
- $packageName
- The package name of the application for which this subscription was purchased
(for example, 'com.some.thing').
- $subscriptionId
- The purchased subscription ID (for example, 'monthly001').
- $token
- The token provided to the user's device when the subscription was purchased.
- $optParams
- Optional parameters.
|
public
|
#
revoke( string $packageName, string $subscriptionId, string $token, array $optParams = array() )
Refunds and immediately revokes a user's subscription purchase. Access to the
subscription will be terminated immediately and it will stop recurring.
(subscriptions.revoke)
Refunds and immediately revokes a user's subscription purchase. Access to the
subscription will be terminated immediately and it will stop recurring.
(subscriptions.revoke)
Parameters
- $packageName
- The package name of the application for which this subscription was purchased
(for example, 'com.some.thing').
- $subscriptionId
- The purchased subscription ID (for example, 'monthly001').
- $token
- The token provided to the user's device when the subscription was purchased.
- $optParams
- Optional parameters.
|