(self, **kwargs)
return context
Inject STRIPE_PUBLIC_KEY and plans into context_data.
Inject STRIPE_PUBLIC_KEY and plans into context_data.
Inject STRIPE_PUBLIC_KEY and plans into context_data .
def get_context_data(self, **kwargs):
        """Inject STRIPE_PUBLIC_KEY and plans into context_data."""
        context = super().get_context_data(**kwargs)
        context.update(
            {
                "STRIPE_PUBLIC_KEY": djstripe_settings.STRIPE_PUBLIC_KEY,
                "plans": Plan.objects.all(),
            }
        )
        return context
def get_context_data ( self , * * kwargs ) : context = super ( ) . get_context_data ( * * kwargs ) context . update ( { "STRIPE_PUBLIC_KEY" : djstripe_settings . STRIPE_PUBLIC_KEY , "plans" : Plan . objects . all ( ) , } ) return context