Fix cart redirect after crypto payment cancellation
Use simple /cart route which automatically goes to active cart instead of trying to construct specific cart checkout URL with non-existent cart_id field.
This commit is contained in:
parent
93f41294a4
commit
b63be901f3
1 changed files with 1 additions and 3 deletions
|
|
@ -733,9 +733,7 @@ def crypto_cancel(request):
|
|||
request.dbsession.flush()
|
||||
|
||||
# Get the cart URL for redirect
|
||||
cart_url = request.route_url(
|
||||
"user_cart_checkout", cart_id=crypto_payment.invoice.cart_id
|
||||
)
|
||||
cart_url = request.route_url("cart")
|
||||
|
||||
return Response(
|
||||
json.dumps(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue