mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
https for stripe urls. Fixes #1865.
This commit is contained in:
parent
9fed393be7
commit
2fd2d3e485
1 changed files with 3 additions and 3 deletions
|
@ -743,7 +743,7 @@ def stripe_checkout(request):
|
|||
if plan == "change_stripe":
|
||||
checkout_session = stripe.billing_portal.Session.create(
|
||||
customer=request.user.profile.stripe_id,
|
||||
return_url="http://%s%s?next=payments" % (domain, reverse("index")),
|
||||
return_url="https://%s%s?next=payments" % (domain, reverse('index')),
|
||||
)
|
||||
return HttpResponseRedirect(checkout_session.url, status=303)
|
||||
|
||||
|
@ -758,8 +758,8 @@ def stripe_checkout(request):
|
|||
],
|
||||
"mode": "subscription",
|
||||
"metadata": {"newsblur_user_id": request.user.pk},
|
||||
"success_url": "http://%s%s" % (domain, reverse("stripe-return")),
|
||||
"cancel_url": "http://%s%s" % (domain, reverse("index")),
|
||||
"success_url": "https://%s%s" % (domain, reverse('stripe-return')),
|
||||
"cancel_url": "https://%s%s" % (domain, reverse('index')),
|
||||
}
|
||||
if request.user.profile.stripe_id:
|
||||
session_dict["customer"] = request.user.profile.stripe_id
|
||||
|
|
Loading…
Add table
Reference in a new issue