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?

Thanks
Comments
  • fc_adamfc_adam FoxyCart Team
    @appman,

    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.
    Example:



    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?

    Regards
  • fc_adamfc_adam FoxyCart Team
    @appman,

    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.