How to use the recurly.objects_for_push_notification function in recurly

To help you get started, we’ve selected a few recurly examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github recurly / recurly-client-python / tests / test_recurly.py View on Github external
def test_objects_for_push_notification(self):
        import recurly

        objs = recurly.objects_for_push_notification("""
        
          
            verena@test.com
            verena
            verena@test.com
            Verena
            Test
            Company, Inc.
          
          
            
              bronze
              Bronze Plan
              2
            
            active
github lamby / django-recurly / django_recurly / views.py View on Github external
def push_notifications(request):
    data = recurly.objects_for_push_notification(request.raw_post_data)

    try:
        signal = getattr(signals, data['type'])
    except AttributeError:
        return HttpResponseBadRequest("Invalid notification name.")

    signal.send(sender=request, data=data)

    return HttpResponse()