Im running into this problem just in Development for now. I get a Faraday::TimeoutError execution expired error when creating a new terminal checkout. It is happening about half the time in Development. Using ngrok for my https forwarder.
I had not had this issue before but here is the code which has not changed
@terminal_result = square_api_client.terminal.create_terminal_checkout(
body: {
idempotency_key: SecureRandom.uuid,
checkout: {
amount_money: {
amount: @square_amount,
currency: "USD"
},
reference_id: @sale_id,
note: @skiswap.swap_name,
device_options: {
device_id: @terminal_id,
skip_receipt_screen: false,
tip_settings: {
allow_tipping: false
}
},
payment_type: "CARD_PRESENT",
customer_id: "",
app_fee_money: {
amount: @app_fee,
currency: "USD"
}
}
}
)