class PurchasesSubscriptionsv2 extends Resource (View source)

The "subscriptionsv2" collection of methods.

Typical usage is:

 $androidpublisherService = new Google\Service\AndroidPublisher(...);
 $subscriptionsv2 = $androidpublisherService->purchases_subscriptionsv2;

Methods

get(string $packageName, string $token, array $optParams = [])

Get metadata about a subscription (subscriptionsv2.get)

revoke(string $packageName, string $token, RevokeSubscriptionPurchaseRequest $postBody, array $optParams = [])

Revoke a subscription purchase for the user. (subscriptionsv2.revoke)

Details

SubscriptionPurchaseV2 get(string $packageName, string $token, array $optParams = [])

Get metadata about a subscription (subscriptionsv2.get)

Parameters

string $packageName

The package of the application for which this subscription was purchased (for example, 'com.some.thing').

string $token

Required. The token provided to the user's device when the subscription was purchased.

array $optParams

Optional parameters.

Return Value

SubscriptionPurchaseV2

Exceptions

Exception

RevokeSubscriptionPurchaseResponse revoke(string $packageName, string $token, RevokeSubscriptionPurchaseRequest $postBody, array $optParams = [])

Revoke a subscription purchase for the user. (subscriptionsv2.revoke)

Parameters

string $packageName

Required. The package of the application for which this subscription was purchased (for example, 'com.some.thing').

string $token

Required. The token provided to the user's device when the subscription was purchased.

RevokeSubscriptionPurchaseRequest $postBody
array $optParams

Optional parameters.

Return Value

RevokeSubscriptionPurchaseResponse

Exceptions

Exception