Copied to clipboard

Flag this post as spam?

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


  • Warren Harding 78 posts 184 karma points
    26 days ago
    Warren Harding
    0

    Skip payment method step

    Hi there - is there a way to skip the Payment Method page if we are only offering credit card payment?

    Thank you

  • Matt Brailsford 3240 posts 17128 karma points MVP 8x c-trib
    26 days ago
    Matt Brailsford
    0

    Is this a custom integration? or are you meaning with Vendr Checkout package?

  • Warren Harding 78 posts 184 karma points
    25 days ago
    Warren Harding
    0

    Ah yes sorry - I forget it's a seperate package Can that stage be skipped if I've set credit card as the default?

  • Matt Brailsford 3240 posts 17128 karma points MVP 8x c-trib
    25 days ago
    Matt Brailsford
    0

    Hey Warren

    Unfortunately it's not quite built to do that I don't think.

    You might be able to just unpublished the Payment Method page, but you'll also need to disable some event handlers we have in place https://github.com/vendrhub/vendr-checkout/blob/dev/src/Vendr.Checkout/Events/ResetPaymentAndShippingMethods.cs

    We use those to clear the payment / shipping methods at different stages throughout the checkout flow as changes in the billing / shipping location could affect previously selected options, so we just clear them.

    You'll have to try disabling them via code in a composer

    composition.WithNotificationEvent<OrderPaymentCountryRegionChangingNotification>()
        .RemoveHandler<OrderPaymentCountryRegionChangingHandler>();
    

    You'll need to do this for every event that needs removing though, and you may need to add your own so that the shipping methods continue to be cleared.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft