Foxy Forum Status

We're no longer responding to questions via our forum, but we will keep it up for historical reasons. If you can't find the answer you're looking for, please visit our knowledge base or contact us. If there's enough interest in the future, we may bring the forum back.

Initial app subscription transaction

Hi guys,

We are using the Transaction XML data feed (v1.1) to generate a license key when someone buys an app from our online store.
The problem is we are receiving the transaction xml every time the subscription is rebilled, which causes a new email to be sent.

How do we differentiaite between the initial transaction and subsequent transaction?

  • fc_adamfc_adam FoxyCart Team

    Good question. If you check the products in the transaction details within the XML, you can tell if it's a renewal by checking if the start date is not todays date, but one in the past.
  • Hi,

    Thank you for your quick reply. But we have run into another problem.

    When a purchase is made, for some reason the start date and the transaction date are different.

    Our store is set to use GMT+10 (Melbourne), the end-user is in Melbourne and the date in UTC is the 20th. So why is the subscription start date the day before? What timezone is this?

    One possible solution we came up with initially is to check if its the day before. But if we/or the customer makes a modification to the subscription (ie adds an item to the subscription) it breaks again.

    We have noticed a number of similar topics in the forum (some of which date back to 2009), will this issue be addressed in the foreseeable future?

  • fc_adamfc_adam FoxyCart Team

    Ah yes - the timestamp you'll be seeing there is our server timezone, which is Pacific Standard Time (US). If you convert the time you're checking against the datafeed with to that timezone, you should be able to correctly check then.

    We do have an active ticket to consolidate timestamps across all instances to match a single setting per store to unify it, and we hope to add that in one of our upcoming versions.
Sign In or Register to comment.