When trying to validate a receipt of a cancelled subscription the cancellation date is returned in datetime str format instead of epoch for this , we need either to transform cancellation_date to epoch or use the cancellation_date_ms which exists in the receipt attribute .
I'll create a PR for that today
Code sample
Properties declaration
Update the PURCHASE _DATE to PURCHASE_DATE_MS field
Summary:
When trying to validate a receipt of a cancelled subscription the cancellation date is returned in datetime str format instead of epoch for this , we need either to transform cancellation_date to epoch or use the cancellation_date_ms which exists in the receipt attribute . I'll create a PR for that today
Code sample
Properties declaration
Update the PURCHASE _DATE to PURCHASE_DATE_MS field
Get cancellationDate as int from CANCELLATION_DATE_MS field