Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: concat from Shafqat
Browse files Browse the repository at this point in the history
  • Loading branch information
grmartin committed Jul 3, 2024
1 parent b73add6 commit 83bae38
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ecommerce/extensions/basket/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,9 @@ def _redirect_response_to_basket_or_payment(self, request, invalid_code=None):
paypal_redirect = request.GET.get('paypal_redirect')

if paypal_redirect:
concat_char = "&" if "?" in redirect_url else "?"
redirect_url += f"{concat_char}paypal_redirect=1"
redirect_url += '&' if '?' in redirect_url else '?'
redirect_url += 'paypal_redirect=1'

redirect_url = add_stripe_flag_to_url(redirect_url, request)

return HttpResponseRedirect(redirect_url, status=303)
Expand Down

0 comments on commit 83bae38

Please sign in to comment.