question

Niall O C avatar image
Niall O C asked Niall O C answered

Passing Customer data to the Register app, then passing Customer&Order data back to our app after order completed in the Register app

How do we
1. pass customer data to the register app and
2. link that customer data to the order created inside the register app, and
3. then pass that combined customer and order data back to our CallDock app?"

Thank you for your help in clarifying these points.



Best,
Niall



For more context on the app's user flow
1. Customers information is passed to our app and the merchant would then like to create an order for that user.
2. The user is brought to the Register app, where an order is made and paid for. The user is then brought back to our app with the combined Customer and Order data, where further actions are taken with that information.



OrdersCustomers
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Lee Tickett avatar image
Lee Tickett answered
Just glancing over your question I think the following should work;

1. Create an order in your app and attach the customer
2. Send the order_id as an extra with the register pay intent
3. Register/listen for the payment broadcast and pull the order_id extra out
4. Examine the order to get the customer etc back in your app

Hope that helps.
L
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Niall O C avatar image
Niall O C answered
Thank you Lee. If there are follow up questions, I will post here. Cc @tickett
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community