Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

4466 articles

Simulate an input collection timeout


Simulate an input collection timeout Test helper

POST / v1 / test_helpers / terminal / readers /:id / timeout_input_collection

Use this endpoint to complete an input collection with a timeout error on a simulated reader.

Parameters

No parameters.

Returns

Returns an updated Reader resource.

Response

{ "id": "tmr_FDOt2wlRZEdpd7", "object": "terminal.reader", "action": { "failure_code": "collect_inputs_timeout", "failure_message": "collect inputs was timed out", "collect_inputs": { "inputs": [ { "type": "signature", "custom_text": { "title": "Signature", "description": "Please sign below", "submit_button": "Submit", "skip_button": "Skip" }, "required": false, "signature": { "value": null } }, { "type": "selection", "custom_text": { "title": "Selection", "description": "Please select one" }, "required": true, "selection": { "choices": [ { "style": "primary", "value": "choice_1" }, { "style": "secondary", "value": "choice_2" } ], "value": null } }, { "type": "email", "custom_text": { "title": "Enter your email", "description": "We'll send updates on your order and occasional deals", "submit_button": "Submit", "skip_button": "Skip" }, "required": false, "email": { "value": null } } ] }, "status": "failed", "type": "collect_inputs" }, "device_deploy_group": null, "device_sw_version": null, "device_type": "bbpos_wisepos_e", "ip_address": "192.168.2.2", "label": "Blue Rabbit", "livemode": false, "location": null, "metadata": {}, "serial_number": "123-456-789", "status": "online"}

Simulate presenting a payment method Test helper

POST / v1 / test_helpers / terminal / readers /:id / present_payment_method

Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.

Parameters

  • card _ present object Simulated data for the card_present payment method.
  • type enum Simulated payment type. Possible enum values card Simulate a card payment method card_present Simulate a card_present payment method interac_present Simulate a interac_present payment method

More parameters

  • amount _ tip integer
  • card object
  • interac _ present object

Returns

Returns an updated Reader resource.

Response

{ "id": "tmr_gLeqlF03xvlBympS9RfZqdpF", "object": "terminal.reader", "action": { "failure_code": null, "failure_message": null, "process_payment_intent": { "payment_intent": "pi_1Gt0582eZvKYlo2CGSidzWqK" }, "status": "succeeded", "type": "process_payment_intent" }, "device_sw_version": null, "device_type": "bbpos_wisepos_e", "ip_address": "192.168.2.2", "label": "Blue Rabbit", "last_seen_at": null, "livemode": false, "location": null, "metadata": {}, "serial_number": "123-456-789", "status": "online"}
Last verified 2026-09-24

Is this helpful?