Closed davogler closed 7 years ago
Thanks!
Can you share your receipt with expire_date_formatted
if you don't mind?
sure!
This is for an auto-renewable subscription to a newsstand app. Example below:
{
u'status':0,
u'auto_renew_status':1,
u'receipt':{
u'expires_date_formatted': u'2016-09-27 19:29:20 Etc/GMT',
u'expires_date':u'1475004560000',
u'product_id':u'xxxx',
u'original_transaction_id':u'1000000238783724',
u'unique_identifier':u'1ae7d19cf195ee73b6c74175a585038e691683fd',
u'original_purchase_date_pst': u'2016-09-27 11:29:21 America/Los_Angeles',
u'bvrs':u'431',
u'expires_date_formatted_pst': u'2016-09-27 12:29:20 America/Los_Angeles',
u'original_purchase_date': u'2016-09-27 18:29:21 Etc/GMT',
u'unique_vendor_identifier':u'xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
u'web_order_line_item_id':u'1000000033320808',
u'original_purchase_date_ms':u'1475000961000',
u'purchase_date': u'2016-09-27 18:29:20 Etc/GMT',
u'purchase_date_pst': u'2016-09-27 11:29:20 America/Los_Angeles',
u'item_id':u'1144308805',
u'purchase_date_ms':u'1475000960000',
u'bid':u'xxx.xxxxxxxxx.xxxxx',
u'transaction_id':u'1000000238785371',
u'quantity':u'1'
},
u'latest_receipt_info':{
u'expires_date_formatted': u'2016-09-27 19:29:20 Etc/GMT',
u'expires_date':u'1475004560000',
u'product_id':u'xxxxxx',
u'original_transaction_id':u'1000000238783724',
u'unique_identifier':u'xxxxxxxxxxxxxxxxxxxxxxxxx',
u'original_purchase_date_pst': u'2016-09-27 11:29:21 America/Los_Angeles',
u'bvrs':u'431',
u'expires_date_formatted_pst': u'2016-09-27 12:29:20 America/Los_Angeles',
u'original_purchase_date': u'2016-09-27 18:29:21 Etc/GMT',
u'unique_vendor_identifier':u'xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
u'web_order_line_item_id':u'1000000033320808',
u'original_purchase_date_ms':u'1475000961000',
u'purchase_date': u'2016-09-27 18:29:20 Etc/GMT',
u'purchase_date_pst': u'2016-09-27 11:29:20 America/Los_Angeles',
u'item_id':u'1144308805',
u'purchase_date_ms':u'1475000960000',
u'bid':u'xxx.xxxxxxxxx.xxxxx',
u'transaction_id':u'1000000238783724',
u'quantity':u'1'
},
u'latest_receipt':u'ewoJ.......Owp9',
u'auto_renew_adam_id':1144308805
}
In my application, I have found that the iTunes receipt response object (InApp) does not contain 'expires_date', but rather 'expires_date_formatted'. This can also be parsed by '_to_datetime', so I have simply added it to the InApp object __EXPORT_FILTERS__ dict.
Also added .DS_Store to .gitignore because Mac.