Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaniog committed Jun 15, 2024
2 parents 25b2b80 + a3550bd commit 0ecfa1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/apps/payments/views.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import json

from apps.booking.models import Buyer, Cart, Booking
from apps.amo.views import post_orders
from apps.booking.models import Booking, Buyer, Cart
from apps.booking.serializers import BookingSerializer, Buyer
from apps.mailer.utils import send_purchase_email
from apps.booking.serializers import Buyer, BookingSerializer
from apps.tickets.generator import generate_ticket
from apps.tickets.utils import get_ticket_info
from django.db import transaction
Expand All @@ -16,7 +17,6 @@
from .models import Order
from .serializers import PaymentProcessingSerializer, PaymentStatusSerializer
from .services import YooKassaService
from apps.amo.views import post_orders


@api_view(["POST"])
Expand Down Expand Up @@ -107,7 +107,7 @@ def post(self, request, *args, **kwargs):
status=status.HTTP_200_OK,
)

payment_response = YooKassaService.create_payment_embedded("10", cart_id)
payment_response = YooKassaService.create_payment_embedded(cart.total, cart_id)
if not payment_response:
return Response(
{"error": "Payment service error"},
Expand Down

0 comments on commit 0ecfa1c

Please sign in to comment.