New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.UriFormatException: Invalid URI: The URI is empty #4
Comments
I just tested this in Umbraco 8.15.0, Vendr 1.8.6 and Vendr.Contrib.PaymentProviders.Nets 1.0.1 I could reproduce an error if Any special characters in the shipping address? For example it seems Nets Easy doesn't accept However with a simple product with a cost of 100 DKK (tested with a without shipping) it does seem to work. |
shippingAddressLine1, shippingCity and shippingZipCode has values and fields are mapped Also, looking at Nets documentation, these fields do not seem to be required |
Yes, that shouldn't be the issue. The shipping address details is optional, but is needed if the consumer data should be stored: But I couldn't easily reproduced it in demo store: I guess the (Test/Live) Secret Key and (Test/Live) Checkout Key are filled in the correct settings fields. |
Yes the keys from Nets are filled out correct. After updating Umbraco, Vendr and Vendr.Contrib.PaymentProviders.Nets, all to latest versions, it works with the same properties entered in the gateway configuration. 🤷♂️ So this configuration works: |
Okay that's great, but also a bit strange. When I disregard the changes it Vendr v2 accessing order and settings via I noticed the payment method settings, but it isn't really used as Nets currently decided the payment methods based on country and currency: https://developers.nets.eu/nets-easy/en-EU/docs/payment-methods/ However I have been told this feature may be added in June, so I think I will leave this setting for now. If you still need to resolve this issue in v1 you could try creating an instance of or clone the repository, checkout |
I will close this as I couldn't reproduce the error in Vendr 1.8.6 and Vendr.Contrib.PaymentProviders.Nets 1.0.1 with demo store data, but let me know if it is still an issue and steps to reproduce. Ideally the which part of the data in the JSON request that is causing the invalid request. |
When trying to go to payment, I get a
System.UriFormatException: Invalid URI: The URI is empty.
error on a line with this codeusing (Html.BeginPaymentForm(order))
It's a simple order with just one product, no giftcards, discounts or any other price adjustments.
Phone number is valid without any prefixes. I've also tried removing all field aliases in the payment method settings, but I still get the error.
Terms Url has been added.
Umbraco 8.12.3
Vendr 1.8.6
Vendr.Contrib.PaymentProviders.Nets 1.0.1
The text was updated successfully, but these errors were encountered: