Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sander Los 27 posts 160 karma points
    Oct 24, 2022 @ 09:14
    Sander Los
    0

    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.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 24, 2022 @ 09:42
    Matt Brailsford
    0

    Hey,

    If you log into Mollie do they provide any further detail in their error log as to the reason it's invalid?

  • Sander Los 27 posts 160 karma points
    Oct 24, 2022 @ 09:51
    Sander Los
    0

    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 enter image description here

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 24, 2022 @ 09:59
    Matt Brailsford
    0

    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?

  • Sander Los 27 posts 160 karma points
    Oct 24, 2022 @ 10:02
    Sander Los
    0

    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

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 24, 2022 @ 10:14
    Matt Brailsford
    0

    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.

  • Sander Los 27 posts 160 karma points
    Oct 24, 2022 @ 10:40
    Sander Los
    0

    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

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 24, 2022 @ 10:42
    Matt Brailsford
    0

    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?

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 24, 2022 @ 11:06
    Matt Brailsford
    100

    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.

  • Sander Los 27 posts 160 karma points
    Oct 24, 2022 @ 11:27
    Sander Los
    0

    Works like a charm.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 24, 2022 @ 12:46
    Matt Brailsford
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft