Categories

Relative URLs only allowed

If you face with error type: “Only application relative URLs (~/url) are allowed.” You need to made change to file Plugins\Payments.AmazonPay\Views\AmazonPayShoppingCart\ScriptingLoginButton.NA.CSHTML
Find line

Html.AddScriptParts(ResourceLocation.Head, Model.WidgetUrl, false);

And comment it. In your template in the head (HTML) add this line (and replace XXXXXXX with your seller ID):

<script src="https://static-eu.payments-amazon.com/OffAmazonPayments/uk/sandbox/lpa/js/Widgets.js?sellerId=XXXXXXXXXXX" type="text/javascript"></script>

back to top