Skip to content

Undefined array key "data" in $subscription->getProviderRepresentation() #453

@vinaye42

Description

@vinaye42

Liap version(s) affected

1.14

Description

Hello @imdhemy,

In DID_RENEW event from app store, i got different response for many time:
when i get data from: $subscription->getProviderRepresentation();
`

What is this response changes occur, can you help me to fix this issue?
`

How to reproduce

$subscription->getProviderRepresentation();

[2025-04-08 04:59:07] production.INFO: renew - object
[2025-04-08 04:59:07] production.INFO: array (
'notificationType' => 'DID_RENEW',
'notificationUUID' => 'cb1fb147-xxxx-xxxx-xxxx-xxxxxxxxx',
'data' =>
array (
'appAppleId' => 1193361491,
'bundleId' => 'com.fitness',
'bundleVersion' => '1.0',
'environment' => 'Production',
'signedTransactionInfo' => '',
'signedRenewalInfo' => '',
'status' => 1,
),
'version' => '2.0',
'signedDate' => 1744088340641,
)

[2025-04-08 02:17:33] production.INFO: renew - object
[2025-04-08 02:17:33] production.INFO: array (
'quantity' => '1',
'product_id' => 'monthly',
'transaction_id' => 'xxxxxxxxx',
'purchase_date' => '2025-04-08 10:17:28 Etc/GMT',
'purchase_date_ms' => '1744107448000',
'purchase_date_pst' => '2025-04-08 03:17:28 America/Los_Angeles',
'original_purchase_date' => '2025-02-08 11:17:29 Etc/GMT',
'original_purchase_date_ms' => '1739013449000',
'original_purchase_date_pst' => '2025-02-08 03:17:29 America/Los_Angeles',
'expires_date' => '2025-05-08 10:17:28 Etc/GMT',
'expires_date_ms' => '1746699448000',
'expires_date_pst' => '2025-05-08 03:17:28 America/Los_Angeles',
'web_order_line_item_id' => 'xxxxxxxxx',
'is_trial_period' => 'false',
'is_in_intro_offer_period' => 'false',
'original_transaction_id' => 'xxxxxxxx',
'in_app_ownership_type' => 'PURCHASED',
'subscription_group_identifier' => 'xxxxxx',
)

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions