'Use the sandbox when in DEBUG mode as we don\'t have a test_ipn variable in pdt.'

def get_endpoint(self):

    if settings.DEBUG:
        return SANDBOX_POSTBACK_ENDPOINT
    else:
        return POSTBACK_ENDPOINT
