Square API Line Items

I need to integrate Square instead of Stripe, which I am hoping to do so via API Connector. But either way, I don’t understand how to send an itemized list of products that the customer wishes to purchase.

Say a customer puts an unknown number of items into the shopping cart. Instead of only stated the total amount the customer owes, how do I send this dynamic itemized list of products to Square/Stripe so that it shows the lists plus the total amount owed on the processor end?

PS. In Square, both CreatePaymentLink and Order requests have line item keys where I can put a list in, but I don’t understand how to do this dynamically.

Thank you.

This topic was automatically closed after 70 days. New replies are no longer allowed.