I am able to checkout successfully using sandbox. And it returns me the checkoutId and transactionId.
//Dummy data
[
'checkoutId' => 123123123,
'transactionId' => 123123123
]
I now need to retrieve the information about the transaction like Product details. How can I get that information from transaction id?
I research it on Square Checkout Documentation but unable to find any information.
Edit
Found a similar question Stackoverflow asked by Gabriel Prieto, but the accepted answer is now deprecated.
TransactionId is now equivalent to OrderId. The easiest solution here is to pass the transactionId
to BatchRetrieveOrders and you'll get the information you need like itemization.