Fixed script prefixes in absolute URLs

This commit is contained in:
Raphael Michel
2015-06-18 15:33:40 +02:00
parent 32a9d9709b
commit 8b3eb14d73
6 changed files with 20 additions and 12 deletions

View File

@@ -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": [
{

View File

@@ -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": [
{

View File

@@ -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):