Copied to clipboard

Flag this post as spam?

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


  • Tim 11 posts 73 karma points
    1 week ago
    Tim
    0

    Single Page Checkout

    Hi,

    I have a question about the checkout process. In the example site, checkout is split into multiple steps. Is it possible to have everything in a single page and go straight to the thank you page once filled in correctly?

    I have a default delivery (free delivery) and payment method set up, and the payment method is invoice, so there's no payment to capture. Is what I'm looking to do possible? I've tried it, but it doesn't seem to be finalising the order. Is there a list of the fields that MUST be filled in for the order to be finalised when you update the order using the API? I'm not sure if I've just not set something that I should have, or if it's something else!

  • Matt Brailsford 2576 posts 12723 karma points MVP 7x c-trib
    1 week ago
    Matt Brailsford
    100

    Hi Tim,

    It's possible in a sort of way.

    The problem is we need to render the payment form to do some required steps, and this needs to happen after the order has been updated with all relevant info you've captured, so the only way to do this is to capture the details, and go to a screen with that payment form rendered, but instead of rendering a button in the payment form, render some javascript to auto submit the form.

    Effectively this is then a 2 step process, but it only requires the user to enact the one step, the second step is automatic.

    You could do one of two ways to make this look pretty. On the Vendr site, we display a page that says "Redirecting you to the payment gateway" with a button to proceed if the JS fails, or you could submit the single page checkout form to a hidden iframe, then in that iframe render the auto submitting form which submits back to the main window such that the user never really leaves the checkout page.

    Hope this makes sense

    Matt

  • Tim 11 posts 73 karma points
    1 week ago
    Tim
    0

    Hi Matt,

    Thanks for the speedy reply as always! That all makes sense, I'll try and do something like that!

    :)

    Cheers,

    Tim

  • Tim 11 posts 73 karma points
    1 week ago
    Tim
    0

    That worked perfectly!

    One last question, for the invoice payment provider, should the confirmation email be sent when the order is finalised?

  • Matt Brailsford 2576 posts 12723 karma points MVP 7x c-trib
    1 week ago
    Matt Brailsford
    0

    Hey Tim,

    I can't recall whether we send it after finalization, or whether it's send when the payment is "captured". By default an invoice is just "authorized" until it's captured via the button in the back office.

    I do think it's meant to sent straight after checkout though. If you aren't receiving one I'd check your email settings, and the error log to see if there was an issue sending.

    /Matt

Please Sign in or register to post replies

Write your reply to:

Draft