Getting App store signedTransactionInfo decoded #333
Unanswered
kingzee100
asked this question in
Q&A
Replies: 4 comments 1 reply
-
You have two options:
$timestamp = $expiryTime->toDateTime()->getTimestamp();
$timestamp = $expiryTime->toCarbon()->getTimestamp(); You still have access to the original milliseconds from the Carbon instance $milliseconds = $expiryTime->toCarbon()->getTimestampMs(); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Works great. Thanks!
…On Thu, 4 May 2023 at 14:31 Dhemy ***@***.***> wrote:
You have two options:
1. From the Datetime
$timestamp = $expiryTime->->toDateTime()->getTimestamp();
1. From Carbon
$timestamp = $expiryTime->toCarbon()->getTimestamp();
—
Reply to this email directly, view it on GitHub
<#333 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIY3RSBL3NO4IEUX6Z2PMY3XEOHQPANCNFSM6AAAAAAXVS5CSE>
.
You are receiving this because you authored the thread.Message ID:
<imdhemy/laravel-in-app-purchases/repo-discussions/333/comments/5803767@
github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, thanks for making this package! It's certainly a big help.
I have everything working, including receipt validation and server
notifications for both Apple and Google :)
On android, however, when I test (sandbox), I only get server
notification for the initial Subscription event and the Expiration event
(about 5 minutes later) but not for the renewals.
I did define the event SubscriptionRenewed in the Iiap.config in the same
way as I did for all other events (all work).
but for some reason the renewal events do not seem to get called.
Any ideas on what could be the reason?
Thanks again,
Zak
…On Thu, May 4, 2023 at 3:13 PM Zak Soulam ***@***.***> wrote:
Works great. Thanks!
On Thu, 4 May 2023 at 14:31 Dhemy ***@***.***> wrote:
> You have two options:
>
> 1. From the Datetime
>
> $timestamp = $expiryTime->->toDateTime()->getTimestamp();
>
>
> 1. From Carbon
>
> $timestamp = $expiryTime->toCarbon()->getTimestamp();
>
> —
> Reply to this email directly, view it on GitHub
> <#333 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AIY3RSBL3NO4IEUX6Z2PMY3XEOHQPANCNFSM6AAAAAAXVS5CSE>
> .
> You are receiving this because you authored the thread.Message ID:
> <imdhemy/laravel-in-app-purchases/repo-discussions/333/comments/5803767@
> github.com>
>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes it was. Thanks so much for the reply. I appreciate it.
Great package!
…On Tue, May 9, 2023 at 12:28 PM Dhemy ***@***.***> wrote:
Hi Zak,
Happy to hear that this package helped you. I believe this is related to
Google or console configurations. I bet you already had a look on this
document as well, didn't you?
https://developer.android.com/google/play/billing/test
—
Reply to this email directly, view it on GitHub
<#333 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIY3RSC3HVQYP7D6Y3YMNZDXFIE45ANCNFSM6AAAAAAXVS5CSE>
.
You are receiving this because you authored the thread.Message ID:
<imdhemy/laravel-in-app-purchases/repo-discussions/333/comments/5845831@
github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, when getting a server notification from the Apple app store: in the listener file the $subscription->getExpiryTime() returns an object:
example:
Imdhemy\AppStore\ValueObjects\Time Object
(
[timestampMilliseconds:Imdhemy\AppStore\ValueObjects\Time:private] => 1683196418000
)
as you can see the value is protected by a private method. How can I get the value: 1683196418000?
Beta Was this translation helpful? Give feedback.
All reactions