Hello,
I am trying to integrate my own app with Square API using the SDK to process payments. I am confused on that source_id or what it is used for.
So when I save a transaction/order to my database, I generate a transactionId (GUID) value that represents the transaction itself. Is this the source_id? If not, what would be the source_id?
Also, the parameter LocationId, is that something can be anything like the locationId from my app? or is this Square specific ID? My app have multiple locations and depending from where the transaction was initiated, I can have a different location-id.
Similarly, the parameter customerId, would this be the customerId from my app or is this Square specific ID?
Lastly, how can I pay when the amount is decimal type not long? The Square.Models.Money
object take long type for the amount, but what if the payment is $17.45 not $17?