forked from CGM_Public/pretix_original
Fixed script prefixes in absolute URLs
This commit is contained in:
@@ -89,8 +89,8 @@ class Paypal(BasePaymentProvider):
|
||||
"payment_method": "paypal",
|
||||
},
|
||||
"redirect_urls": {
|
||||
"return_url": build_absolute_uri(reverse('plugins:paypal:return')),
|
||||
"cancel_url": build_absolute_uri(reverse('plugins:paypal:abort')),
|
||||
"return_url": build_absolute_uri('plugins:paypal:return'),
|
||||
"cancel_url": build_absolute_uri('plugins:paypal:abort'),
|
||||
},
|
||||
"transactions": [
|
||||
{
|
||||
|
||||
@@ -71,12 +71,12 @@ def retry(request, order):
|
||||
"payment_method": "paypal",
|
||||
},
|
||||
"redirect_urls": {
|
||||
"return_url": build_absolute_uri(reverse('plugins:paypal:retry', kwargs={
|
||||
"return_url": build_absolute_uri('plugins:paypal:retry', kwargs={
|
||||
'order': order.code
|
||||
})),
|
||||
"cancel_url": build_absolute_uri(reverse('plugins:paypal:retry', kwargs={
|
||||
}),
|
||||
"cancel_url": build_absolute_uri('plugins:paypal:retry', kwargs={
|
||||
'order': order.code
|
||||
})),
|
||||
}),
|
||||
},
|
||||
"transactions": [
|
||||
{
|
||||
|
||||
@@ -40,7 +40,7 @@ class Stripe(BasePaymentProvider):
|
||||
return "<div class='alert alert-info'>%s<br /><code>%s</code></div>" % (
|
||||
_('Please configure a <a href="https://dashboard.stripe.com/account/webhooks">Stripe Webhook</a> to '
|
||||
'the following endpoint in order to automatically cancel orders when a charges are refunded externally.'),
|
||||
build_absolute_uri(reverse('plugins:stripe:webhook'))
|
||||
build_absolute_uri('plugins:stripe:webhook')
|
||||
)
|
||||
|
||||
def checkout_is_valid_session(self, request):
|
||||
|
||||
Reference in New Issue
Block a user