def get(self, request, **kwargs):
        """
        Create checkout page.

        Gets shopping information from cart and sends it to the payment app
        in form of a dict. It then renders the checkout template which can then
        be used to pay.

        Args:
            request: The incoming get request object
            **kwargs: Any keyword arguments passed to the function

        Returns:
            A template rendered with the payment details context
        """
        cart = Cart(request.session)
        amount = cart.total
        amount_in_cents = int(amount) * 100
        title = "Total payment expected"
        description = "Troupon shopping"

        payment_details = {
            "title": title,
            "key": self.stripe_publishable_api_key,
            "amount": amount_in_cents,
            "description": description,
            "currency": "usd",
        }
        request.session['payment_details'] = payment_details

        context = {
            "amount": amount,
            "title": title,
            "description": description,
            "payment_details": payment_details,
        }
        return render(request, self.template_name, context)