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.
I was able to initialize the follow:
But I need to be able to have a dynamic list of line items so that the request looks like this (this example as a list of 3 line items but this needs to be dynamic):
I have not been able to find a post that address this, or I am not understanding the posts I have looked at, so any help would be greatly appreciated.
Thank you.