Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/q/u/qualitio-HEAD/qualitio/payments/views.py   qualitio(Download)
    if request.POST.get('txn_type') == 'recurring_payment' and \
       request.POST.get('payment_status') == u'Completed':
        profile.status = Profile.ACTIVE
 
    elif request.POST.get('txn_type') == 'recurring_payment_profile_created':
    def get(self, request, *args, **kwargs):
        payment = self.request.organization.payment
 
        if payment.status in (Profile.PENDING, Profile.ACTIVE):
            try:
            payment.strategy = Strategy.get_default()
 
        if payment.status == Profile.ACTIVE:
            payment.status= Profile.CANCELED