|
21 | 21 | echo "Transaction Info #$i\n";
|
22 | 22 | echo "App Account Token: {$transactionInfo->getAppAccountToken()}\n";
|
23 | 23 | echo "Bundle ID: {$transactionInfo->getBundleId()}\n";
|
| 24 | + echo "Currency: {$transactionInfo->getCurrency()}\n"; |
24 | 25 | echo "Environment: {$transactionInfo->getEnvironment()}\n";
|
25 | 26 | echo "Expires Date: {$transactionInfo->getExpiresDate()}\n";
|
| 27 | + echo 'Expires Date UTC: ' . date('Y-m-d H::i:s', intval($transactionInfo->getExpiresDate() / 1000)) . "\n"; |
26 | 28 | echo "In-App Ownership Type: {$transactionInfo->getInAppOwnershipType()}\n";
|
27 | 29 | echo "Is Upgraded: {$transactionInfo->getIsUpgraded()}\n";
|
| 30 | + echo "Offer Discount Type: {$transactionInfo->getOfferDiscountType()}\n"; |
28 | 31 | echo "Offer Identifier: {$transactionInfo->getOfferIdentifier()}\n";
|
29 | 32 | echo "Offer Type: {$transactionInfo->getOfferType()}\n";
|
30 | 33 | echo "Original Purchase Date: {$transactionInfo->getOriginalPurchaseDate()}\n";
|
31 | 34 | echo "Original Transaction ID: {$transactionInfo->getOriginalTransactionId()}\n";
|
| 35 | + echo "Price: {$transactionInfo->getPrice()}\n"; |
32 | 36 | echo "Product ID: {$transactionInfo->getProductId()}\n";
|
33 | 37 | echo "Purchase Date: {$transactionInfo->getPurchaseDate()}\n";
|
| 38 | + echo 'Purchase Date UTC: ' . date('Y-m-d H::i:s', intval($transactionInfo->getPurchaseDate() / 1000)) . "\n"; |
34 | 39 | echo "Quantity: {$transactionInfo->getQuantity()}\n";
|
35 | 40 | echo "Revocation Date: {$transactionInfo->getRevocationDate()}\n";
|
| 41 | + echo 'Revocation Date UTC: ' . ($transactionInfo->getRevocationDate() ? date('Y-m-d H::i:s', intval($transactionInfo->getRevocationDate() / 1000)) : '') . "\n"; |
36 | 42 | echo "Revocation Reason: {$transactionInfo->getRevocationReason()}\n";
|
37 | 43 | echo "Signed Date: {$transactionInfo->getSignedDate()}\n";
|
38 | 44 | echo "Subscription Group Identifier: {$transactionInfo->getSubscriptionGroupIdentifier()}\n";
|
|
0 commit comments