Copied to clipboard

Flag this post as spam?

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


  • Neil Hodges 289 posts 875 karma points
    Aug 08, 2020 @ 11:05
    Neil Hodges
    0

    Vendr Checkout - Error setting payment method

    Hi

    Using the latest Vendr and Vendr Checkout.

    When on the Shipping & Payment screen im getting an error continuing over to Review Order screen.

    enter image description here

    Form rendered is:

    enter image description here

    But clicking the Confirm to Review Order im getting:

    enter image description here

    If i nav to the /checkout/review-order/ page i get this:

    enter image description here

    Im just using invoicing at this stage to progress and check the checkout through to confirmation.

    Any ide why the payment methid is'nt getting set? Or why im not able to progress to the Review Order screen from Shipping Payment screen?

  • Neil Hodges 289 posts 875 karma points
    Aug 08, 2020 @ 11:23
    Neil Hodges
    0

    Ah, digging around in the code I think

    UpdateOrderShippingAndPaymentMethod in VendrCheckoutSurfaceController

    https://github.com/vendrhub/vendr-checkout/blob/dev/src/Vendr.Checkout/Web/Controllers/VendrCheckoutSurfaceController.cs

    Is not there anymore? I guess separate it into Shipping Page and Payment Page respectively?

  • Matt Brailsford 2807 posts 14331 karma points MVP 7x c-trib
    Aug 08, 2020 @ 11:28
    Matt Brailsford
    0

    Hi Neil,

    Yea, these got split into their own screens. Unfortunately I haven’t got a way yet to recreate the doc types / templates on upgrade so I’m guessing these are the old versions.

    If you haven’t changed the templates or doc types you could just delete them all and reinstall it. Otherwise you’ll have to manually merge the doc type / template changes.

    Matt

  • Neil Hodges 289 posts 875 karma points
    Aug 08, 2020 @ 11:48
    Neil Hodges
    0

    Yeh given that a go to reinstall but get this error after deleting the Checkout pages.

    enter image description here

    Got to nip out now, but will give it another go later on.

    Cheers Matt

  • Matt Brailsford 2807 posts 14331 karma points MVP 7x c-trib
    Aug 08, 2020 @ 12:00
    Matt Brailsford
    100

    You’ll probably need to delete the 2 data types that get created too.

    Really need to find a better way of handling upgrades. The main problem is I can never know if people have modified the templates so just replacing them could loose someone’s modifications.

  • Neil Hodges 289 posts 875 karma points
    Aug 10, 2020 @ 09:35
    Neil Hodges
    0

    Hi Matt

    Removed the 2 DataTypes but still getting that error:

    System.ArgumentException: An item with the same key has already been added.
    

    Cant install Vendr.Checkout, any other way to install it?

  • Neil Hodges 289 posts 875 karma points
    Aug 10, 2020 @ 09:36
    Neil Hodges
    0

    Ah scratch that bud, Removing Document Types and Data Types has done the trick :)

  • Matt Brailsford 2807 posts 14331 karma points MVP 7x c-trib
    Aug 10, 2020 @ 09:48
    Matt Brailsford
    0

    👍 yea, you currently need to remove everything it creates and let it recreate them.

    I will spend some time to think how to improve this. Glad you got it working though.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft