iOS Development

ios – validate from the backend that the consumer is on free trial interval?

Spread the love


I’ve enabled introductory supply for 3 days in my app retailer join subscription.

However when i’m validating the receipt knowledge by way of backend everytime I get [is_trial_period] => false
[is_in_intro_offer_period] => false

Why so?

enter picture description right here

I’ve created 3 day trial interval with no finish date.

however all the time getting response

Array
(
[environment] => Sandbox
[receipt] => Array
(
[receipt_type] => ProductionSandbox
[adam_id] => 0
[app_item_id] => 0
[bundle_id] => com.askaguyfriend.lifecoach
[application_version] => 17
[download_id] => 0
[version_external_identifier] => 0
[receipt_creation_date] => 2024-02-06 07:54:57 And many others/GMT
[receipt_creation_date_ms] => 1707206097000
[receipt_creation_date_pst] => 2024-02-05 23:54:57 America/Los_Angeles
[request_date] => 2024-02-06 07:56:19 And many others/GMT
[request_date_ms] => 1707206179475
[request_date_pst] => 2024-02-05 23:56:19 America/Los_Angeles
[original_purchase_date] => 2013-08-01 07:00:00 And many others/GMT
[original_purchase_date_ms] => 1375340400000
[original_purchase_date_pst] => 2013-08-01 00:00:00 America/Los_Angeles
[original_application_version] => 1.0
[in_app] => Array
(
[0] => Array
(
[quantity] => 1
[product_id] => annual_guyfriend
[transaction_id] => 2000000517700752
[original_transaction_id] => 2000000517700752
[purchase_date] => 2024-02-06 07:17:37 And many others/GMT
[purchase_date_ms] => 1707203857000
[purchase_date_pst] => 2024-02-05 23:17:37 America/Los_Angeles
[original_purchase_date] => 2024-02-06 07:17:44 And many others/GMT
[original_purchase_date_ms] => 1707203864000
[original_purchase_date_pst] => 2024-02-05 23:17:44 America/Los_Angeles
[expires_date] => 2024-02-06 08:17:37 And many others/GMT
[expires_date_ms] => 1707207457000
[expires_date_pst] => 2024-02-06 00:17:37 America/Los_Angeles
[web_order_line_item_id] => 2000000050727938
[is_trial_period] => false
[is_in_intro_offer_period] => false
[in_app_ownership_type] => PURCHASED
)

            )

    )

[latest_receipt_info] => Array
    (
        [0] => Array
            (
                [quantity] => 1
                [product_id] => annual_guyfriend
                [transaction_id] => 2000000517700752
                [original_transaction_id] => 2000000517700752
                [purchase_date] => 2024-02-06 07:17:37 And many others/GMT
                [purchase_date_ms] => 1707203857000
                [purchase_date_pst] => 2024-02-05 23:17:37 America/Los_Angeles
                [original_purchase_date] => 2024-02-06 07:17:44 And many others/GMT
                [original_purchase_date_ms] => 1707203864000
                [original_purchase_date_pst] => 2024-02-05 23:17:44 America/Los_Angeles
                [expires_date] => 2024-02-06 08:17:37 And many others/GMT
                [expires_date_ms] => 1707207457000
                [expires_date_pst] => 2024-02-06 00:17:37 America/Los_Angeles
                [web_order_line_item_id] => 2000000050727938
                [is_trial_period] => false
                [is_in_intro_offer_period] => false
                [in_app_ownership_type] => PURCHASED
                [subscription_group_identifier] => 21426968
            )

    )

[latest_receipt] => MIIUbQYJKoZIhvcNAQcCoIIUXjCCFFoCAQExDzANBglghkgBZQMEAgEFADCCA6MGCSqGSIb3DQEHAaCCA5QEggOQMYIDjDAKAgEIAgEBBAIWADAKAgEUAgEBBAIMADALAgEBAgEBBAMCAQAwCwIBCwIBAQQDAgEAMAsCAQ4CAQEEAwIBbTALAgEPAgEBBAMCAQAwCwIBEAIBAQQDAgEAMAsCARkCAQEEAwIBAzAMAgEDAgEBBAQMAjE3MAwCAQoCAQEEBBYCNCswDQIBDQIBAQQFAgMCTRAwDQIBEwIBAQQFDAMxLjAwDgIBCQIBAQQGAgRQMzAyMBgCAQQCAQIEEAJRMMXcLSL1hpA9w4vkYsEwGwIBAAIBAQQTDBFQcm9kdWN0aW9uU2FuZGJveDAcAgEFAgEBBBRkwXGqWHVlrZWFyXd9CPYbHCDhcjAeAgEMAgEBBBYWFDIwMjQtMDItMDZUMDc6NTY6MTlaMB4CARICAQEEFhYUMjAxMy0wOC0wMVQwNzowMDowMFowJQIBAgIBAQQdDBtjb20uYXNrYWd1eWZyaWVuZC5saWZlY29hY2gwQgIBBgIBAQQ6vr+Ru2ougLGoQj6JYpp+KHFImVa2LCctR3FV7oVIg5WTG1ecSY1GYCKPaIbUJMh/dOqF1C4q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BAQUFAAOCAQEAXDaZTC14t+2Mm9zzd5vydtJ3ME/BH4WDhRuZPUc38qmbQI4s1LGQEti+9HOb7tJkD8t5TzTYoj75eP9ryAfsfTmDi1Mg0zjEsb+aTwpr/yv8WacFCXwXQFYRHnTTt4sjO0ej1W8k4uvRt3DfD0XhJ8rxbXjt57UXF6jcfiI1yiXV2Q/Wa9SiJCMR96Gsj3OBYMYbWwkvkrL4REjwYDieFfU9JmcgijNq9w2Cz97roy/5U2pbZMBjM3f3OgcsVuvaDyEO2rpzGU+12TZ/wYdV2aeZuTJC+9jVcZ5+oVK3G72TQiQSKscPHbZNnF5jyEuAF1CqitXa5PzQCQc3sHV1ITGCAbUwggGxAgEBMIGJMHUxRDBCBgNVBAMMO0FwcGxlIFdvcmxkd2lkZSBEZXZlbG9wZXIgUmVsYXRpb25zIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MQswCQYDVQQLDAJHNTETMBEGA1UECgwKQXBwbGUgSW5jLjELMAkGA1UEBhMCVVMCEBXnn85SVQplAXyR3+Tus1kwDQYJYIZIAWUDBAIBBQAwDQYJKoZIhvcNAQEBBQAEggEAuTm/2Z7Gj2TMRwWfdj8KQlSaWXfLRLIBJS0gWGOxQE+49fOS37uGG51iFAMOtybgLPEVNZ9dJoPgvSskWawLVf43vpRPwL6EJO0YbxFM5fKwkN6O3gATGJX3wPdWQtMgrL7klSFHTWaAQKxS0UmAf+lJoeBLMAE4VQqzgprD3wCnRGMZcIUEPj1vz1tZVELPz1Uvfov42QEzicoSS01p6fMNon2U0acsdWlyD9A/lsi4Z57Ru5kRBbFZlzTOgi1ZcEmvNbmrqLIZQ0exHaThcgN55AJRxGDXEj0fvjBM8yrRPaQ7xx1GuEcz38dVztx8qZp6lFBvxEXo5v/CqN5qVQ==
[pending_renewal_info] => Array
    (
        [0] => Array
            (
                [auto_renew_product_id] => annual_guyfriend
                [product_id] => annual_guyfriend
                [original_transaction_id] => 2000000517700752
                [auto_renew_status] => 1
            )

    )

[status] => 0

)

Leave a Reply

Your email address will not be published. Required fields are marked *