Are new receipt fields for auto-renewable subscriptions currently working?

Hi!

I noticed that Apple added "Subscription Status URL" to iTunes Connect and updated In-App documentation on Jul 13. So I checked if new fields appear in response from https://sandbox.itunes.apple.com/verifyReceipt and found out that payload doesn't have them.

Here are links to documentation:

https://developer.apple.com/library/content/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html#//apple_ref/doc/uid/TP40010573-CH104-SW1

https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Subscriptions.html#//apple_ref/doc/uid/TP40008267-CH7-SW16


Does anyone know if all this staff currently work? And if so, how to get a new style response from verifyReceipt endpoint?

Thank you!


UPDATE:

For a quick check, I used very simple PHP code (pay attention to the new "exclude-old-transactions" param that doesn't change anything right now):

$url = "https://sandbox.itunes.apple.com/verifyReceipt";
$request = json_encode(array("receipt-data" => "YOUR_RECEIPT", "password"=>"APPLE_SHARED_SECRET", "exclude-old-transactions"=>true));
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
$jsonresult = curl_exec($ch);
curl_close($ch);
var_dump($jsonresult);

This is new! Thanks for posting it.


You wrote....

> I checked if new fields appear in response from itunes.apple.com/verifyReceipt and found out that payload doesn't have them.


The two websites to use are:

    https://sandbox.itunes.apple.com/verifyReceipt

and

    https://buy.itunes.apple.com/verifyReceipt


If your statement that "...response from itunes.apple.com/verifyReceipt...doesn't have them" means you tried a production receipt with an autorenewable subscription in https://buy.itunes.apple.com/verifyReceipt then you have answered your question - haven't you?

Hi!

Sorry, I was just typing too fast so missed some important information)

I used https://sandbox.itunes.apple.com/verifyReceipt endpoint and I'm getting a valid response with 0 status, but without new fields in it.

As of today I'm seeing the new fields for subscription products and the "exclude-old-transactions" is working for me as well.

Same for me.


I absolutely don't see the new fields when I validate receipt in Sandbox.


What can we do ?

Are you validating a receipt that contains an autorenewable subscription and did you include your shared secret password in the package you sent to the sandbox?

Yes, of course.


I just make a new purchase this morning on Sandbox for an autorenewable subscription.


Here is What I get when I check the receipt after a few minutes (after purchase) , in the latest_receipt_info for example (i decoded the JSON)


I can't find for example "auto_renew_status",



[quantity] => 1

[product_id] => numbber.58b09cc9c422f144.yyyyy

[transaction_id] => 10000003204946xx

[original_transaction_id] => 10000002857161xx

[purchase_date] => 2017-08-01 11:32:58 Etc/GMT

[purchase_date_ms] => 1501587178000

[purchase_date_pst] => 2017-08-01 04:32:58 America/Los_Angeles

[original_purchase_date] => 2017-03-28 16:38:29 Etc/GMT

[original_purchase_date_ms] => 1490719109000

[original_purchase_date_pst] => 2017-03-28 09:38:29 America/Los_Angeles

[expires_date] => 2017-08-01 11:37:58 Etc/GMT

[expires_date_ms] => 1501587478000

[expires_date_pst] => 2017-08-01 04:37:58 America/Los_Angeles

[web_order_line_item_id] => 10000000357948xx

[is_trial_period] => false

Does your verify receipt response contain a pending_renewal_info array?


The json path to it would be $.pending_renewal_info[0].auto_renew_status

Are new receipt fields for auto-renewable subscriptions currently working?
 
 
Q