createPaymentDataRequest

fun createPaymentDataRequest(squareLocationId: String, transactionInfo: TransactionInfo): PaymentDataRequest

Creates a PaymentDataRequest instance configured for the Square payment gateway.

Parameters

transactionInfo

The Google Pay TransactionInfo for the payment.

squareLocationId

The unique ID of the location to which the transaction will be credited. Location IDs are generated by Square for store locations listed in the dashboard and can be accessed through the Locations API.