checkout-sdk-js icon indicating copy to clipboard operation
checkout-sdk-js copied to clipboard

Feature Request: Embedded Checkout Order Confirmation Data

Open ChrisDalley opened this issue 5 years ago • 2 comments

I would like to be able to create a custom order confirmation page that still displays the pricing that the customer has paid for an order. Currently, I can do a redirect from the embedded checkout after completion using the Checkout Complete event but there is no way for me to display any data about the order to the user.

It would be great if the Embedded Checkout Complete Event (https://github.com/bigcommerce/checkout-sdk-js/blob/master/docs/interfaces/embeddedcheckoutcompleteevent.md) had a payload which was a snapshot of the final data so that it is then possible to decide how best to display that to the user.

ChrisDalley avatar Jan 02 '20 21:01 ChrisDalley

I don't think we would be supporting something like that any time soon. However, you could use our Storefront APIs to fetch data specific to an order. Only think is that you would require the Order ID but that's something you could potentially get around with? Maybe store the order ID in local storage?

lpschz avatar Jan 21 '20 03:01 lpschz

Thanks @capsula4 - That makes sense, though I'm not sure there is any way of getting the order_id out of the embedded checkout page (cross-origin makes accessing anything pretty difficult).

One idea I had was to add a custom script to the checkout page inside of the bigcommerce admin area but it turns out that none of those custom scripts run inside the embedded checkout iframe (I think that would be a great feature request in itself because if we could access the embedded checkout via scripts, things such as styling and other features could easily be solved!).

ChrisDalley avatar Jan 21 '20 10:01 ChrisDalley

Hi @ChrisDalley did you manage to resolve your challenge?

bc-0dp avatar Feb 15 '24 12:02 bc-0dp

Closing this due to inactivity

bc-0dp avatar Feb 27 '24 09:02 bc-0dp