The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Where the BLEEP is my datafeed key supposed to be?

RustyDustyRustyDusty Member
I'm trying to use the test._xml_datafeed.2.0.php

It says...

// CHANGE THIS DATA:
// Set the URL you want to post the XML to.
// Set the key you entered in your FoxyCart.com admin.
// Modify the XML below as necessary. DO NOT modify the structure, just the data
// ======================================================================================
$myURL = 'https://mydomain.com/Parsing_Code.php';
$myKey = 'CHANGE THIS TEXT to your own datafeed keyphrase';

Datafeed keyphrase?

WHAT!!
WHERE?
Nothing in admin says datafeed keyphrase.
I'm officially lost and about to lose my mind.
Am I supposed to use the parsing code in my datafeed url?
Where are the step by step instructions on how to set up a recurring billing cart without recurring headaches?!
Comments
  • brettbrett FoxyCart Team
    edited April 6
    Hi @RustyDusty
    Sorry for the confusion. The datafeed key is the "api key" on this page of the admin:
    https://admin.foxycart.com/admin.php?ThisAction=EditAdvancedFeatures
    That's definitely not clear. Sorry about that.

    That said, the XML datafeed is old, and unless you have a really, really compelling reason, you should use the new webhooks:
    https://wiki.foxycart.com/v/2.0/webhooks

    You'd set those up in the "integrations" page of the admin.

    To your larger question, though, can you clarify what you're trying to do? Recurring billing in Foxy can be as easy as creating a product with a sub_frequency. That'll make a subscription. Then review the "RECURRING BILLING SETTINGS" in the "advanced" page of the admin and make sure your dunning settings (ie. the emails you send out when there's a billing error, card to expire, etc.) are how you want them.

    Review this page as well, if you haven't:
    https://wiki.foxycart.com/v/2.0/products/subscriptions#



    If you want to integrate recurring billing into another system, that gets more complicated, which is unavoidable, but the webhooks and the API get you all the data. Just a matter of how you want to handle it.

    There's no step-by-step for more advanced integrations like that, as they're going to vary. But if you lay out what you're after, we can help walk you through the pieces.
  • I'm starting a e-learning service for people to subscribe to.

    So I have three links for recurring billing: monthly, 6 months and annual.

    Later on we might sell merchandise but for now it's just e-learning content.

    I did read https://wiki.foxycart.com/v/2.0/products/subscriptions#
    It was very detailed and comprehensive taking into account every scenario and contingency.
    Somehow I ended up down a rabbit hole where I didn't know what was or wasn't required to get the machine up and running.

    I figured that I needed to:
    1: add amazon data to foxyCart admin
    2: add foxyCart links to site
    3: upload parser.php and Non multipship xml to server
    4: add foxy cart api to parser.php
    5: test it all with test._xml_datafeed.2.0.php

    But if what you say is true I overstepped the mark. The setup is not that complicated?
  • brettbrett FoxyCart Team
    Hi @RustyDusty
    Sounds like you probably don't need to handle steps 3, 4, or 5, unless you want to do something custom. If you just want to bill customers, steps 1 and 2 are all you need. (I'd add a step 3 of "review Foxy subscription settings" as well.)

    If you want to get into dynamically provisioning / delivering the e-learning content automatically, that's when you'd need to use the webhook, but you'd want to use the new webhook (https://wiki.foxycart.com/v/2.0/webhooks) and not the old XML datafeed.

    That help?
  • Steps 1 and 2 are good enough for me, for now anyway because at the moment my biggest problem is the MWS AuthToken not working.
    https://forum.foxycart.com/discussion/11840/will-the-real-mws-auth-token-please-stand-up#latest
Sign In or Register to comment.