Skip to content

Commit 5528bdf

Browse files
authored
[1.x] add pending purchase canceled event (#128)
1 parent 6971869 commit 5528bdf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/DeveloperNotifications/SubscriptionNotification.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* SubscriptionNotification Class
99
* Subscription notification
1010
* {@link https://developer.android.com/google/play/billing/integrate}
11-
* {@https://developer.android.com/google/play/billing/rtdn-reference#sub}.
11+
* {@link https://developer.android.com/google/play/billing/rtdn-reference#sub}.
1212
*/
1313
class SubscriptionNotification implements NotificationPayload
1414
{
@@ -25,6 +25,7 @@ class SubscriptionNotification implements NotificationPayload
2525
public const SUBSCRIPTION_PAUSE_SCHEDULE_CHANGED = 11;
2626
public const SUBSCRIPTION_REVOKED = 12;
2727
public const SUBSCRIPTION_EXPIRED = 13;
28+
public const SUBSCRIPTION_PENDING_PURCHASE_CANCELED = 20;
2829

2930
/**
3031
* @var string

tests/DeveloperNotifications/SubscriptionNotificationTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class SubscriptionNotificationTest extends TestCase
2222
SubscriptionNotification::SUBSCRIPTION_PAUSE_SCHEDULE_CHANGED,
2323
SubscriptionNotification::SUBSCRIPTION_REVOKED,
2424
SubscriptionNotification::SUBSCRIPTION_EXPIRED,
25+
SubscriptionNotification::SUBSCRIPTION_PENDING_PURCHASE_CANCELED,
2526
];
2627

2728
/**

0 commit comments

Comments
 (0)