After setting it up, I launch ngrok and use the provided link to place a order in mollie test mode (test key is pasted in the test key field) I get the following error:
MollieApiException: Unprocessable Entity - The webhook URL is invalid:
Vendr.Infrastructure.Resiliency.PollyExecutionStrategyBase.ExecuteAsync
Edit: we also tried another account API key (which has worked with ngrok payments on another project where we manually had to register the webhook) and we get the same error
It's hard to tell without having something that can shed light on what the URL is that is being passed.
Best I could suggest is to pull the source for the Mollie payment provider https://github.com/vendrhub/vendr-payment-provider-mollie and compile it in debug mode and then debug into the GenerateForm method to see what URL is getting passed.
Ok, so it looks like it is bypassing the ngrok URL and instead passing the local URL, which will by why it's failing beause Mollie won't accept localhost URLs.
Hmm, looking at the code for how we extract the URL, we look to use the X-Original-Host header to know if the URL is being proxied, but I'm not sure if ngrok is using that. It looks like it might just be using X-Forwarded-Host.
I've made an update to this code to check both headers and there should be a v3.0.4-beta0001 on our unstable feed at https://nuget.outfield.digital/unstable/vendr/v3/index.json. If you want to try that and see if it resolves your issue that'd be great.
Umbraco 10 Mollie payments
Hi, We are building a Vendr shop and want to use Vendr.PaymentProviders.Mollie to process payments. While setting up the payment method following your guide https://vendr.net/docs/payment-providers/mollie/2.0.0/mollie-onetime/getting-started/configuring-umbraco/
After setting it up, I launch ngrok and use the provided link to place a order in mollie test mode (test key is pasted in the test key field) I get the following error:
MollieApiException: Unprocessable Entity - The webhook URL is invalid: Vendr.Infrastructure.Resiliency.PollyExecutionStrategyBase.ExecuteAsync
Can you help us fix this issue?
Our specs:
Umbraco 10.2.1
Vendr 3.0.3
Vendr.PaymentProviders.Mollie 2.0.1
The solution is not running on Umbraco Cloud.
Hey,
If you log into Mollie do they provide any further detail in their error log as to the reason it's invalid?
Hi,
When I log into the Mollie account, I see no notifications or messages at all.
In ngrok the requests gives a 500 internal server error immediately.
EDIT: bestellen/overzicht = checkoutpage/checkoutreviewpage
Hmm, I'm pretty sure the order should still get created in the Mollie dashboard. We really need to know what URL it's passing.
Are you accessing your local site using ngroks http url? or it's https url?
We acces the site using the https://d...........eu.ngrok.io
Edit: we also tried another account API key (which has worked with ngrok payments on another project where we manually had to register the webhook) and we get the same error
Hmm, that should be correct then.
It's hard to tell without having something that can shed light on what the URL is that is being passed.
Best I could suggest is to pull the source for the Mollie payment provider https://github.com/vendrhub/vendr-payment-provider-mollie and compile it in debug mode and then debug into the
GenerateForm
method to see what URL is getting passed.If I debug into the AsyncPaymentProviderBase to the GenerateFormAsync, I get the following URL in the context.URLS
https://localhost:44306/umbraco/vendr/payment/callback/mollie-onetime/88809ecc-7f2f-4d7d-812b-0184096523df/CART-01027-38168-YGLZV/bbe081df674d9fc1d62b72ea8902b94147e1cb67
Ok, so it looks like it is bypassing the ngrok URL and instead passing the local URL, which will by why it's failing beause Mollie won't accept localhost URLs.
What command are you using to launch ngrok?
Hmm, looking at the code for how we extract the URL, we look to use the
X-Original-Host
header to know if the URL is being proxied, but I'm not sure if ngrok is using that. It looks like it might just be usingX-Forwarded-Host
.I've made an update to this code to check both headers and there should be a v3.0.4-beta0001 on our unstable feed at https://nuget.outfield.digital/unstable/vendr/v3/index.json. If you want to try that and see if it resolves your issue that'd be great.
Works like a charm.
Interesting. I wonder if ngrok has changed then as I must have used it to test this myself. Very strange.
Anyway, I'll get an update out later in the week, but you should be ok to stay on the beta for the time being.
Thanks for testing and confirming.
is working on a reply...