Finalizes a payment on a Reader. See Confirming a Payment for more details.
Parameters
- payment_
intentstringRequired The ID of the PaymentIntent to confirm.
More parameters
- confirm_
configobjectPreview feature
Returns
Returns an updated Reader resource.
{ "id": "tmr_FDOt2wlRZEdpd7", "object": "terminal.reader", "action": { "failure_code": null, "failure_message": null, "collect_payment_method": { "payment_intent": "pi_1NrpbFBHO5VeT9SUiCEDMdc8" }, "status": "in_progress", "type": "confirm_payment_intent" }, "device_sw_version": "", "device_type": "simulated_wisepos_e", "ip_address": "0.0.0.0", "label": "Blue Rabbit", "last_seen_at": 1681320543815, "livemode": false, "location": "tml_FDOtHwxAAdIJOh", "metadata": {}, "serial_number": "259cd19c-b902-4730-96a1-09183be6e7f7", "status": "online"}Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See Collecting a Payment method for more details.
Parameters
- payment_
intentstringRequired The ID of the PaymentIntent to collect a payment method for.
More parameters
- collect_
configobject
Returns
Returns an updated Reader resource.
{ "id": "tmr_FDOt2wlRZEdpd7", "object": "terminal.reader", "action": { "failure_code": null, "failure_message": null, "collect_payment_method": { "payment_intent": "pi_1NrpbFBHO5VeT9SUiCEDMdc8" }, "status": "in_progress", "type": "collect_payment_method" }, "device_sw_version": "", "device_type": "simulated_wisepos_e", "ip_address": "0.0.0.0", "label": "Blue Rabbit", "last_seen_at": 1681320543815, "livemode": false, "location": "tml_FDOtHwxAAdIJOh", "metadata": {}, "serial_number": "259cd19c-b902-4730-96a1-09183be6e7f7", "status": "online"}Initiates a payment flow on a Reader. See process the payment for more details.
Parameters
- payment_
intentstringRequired The ID of the PaymentIntent to process on the reader.
More parameters
- process_
configobject
Returns
Returns an updated Reader resource.
{ "id": "tmr_FDOt2wlRZEdpd7", "object": "terminal.reader", "action": { "failure_code": null, "failure_message": null, "process_payment_intent": { "payment_intent": "pi_3NtEKRLkdIwHu7ix3crEirSx" }, "status": "in_progress", "type": "process_payment_intent" }, "device_sw_version": "", "device_type": "simulated_wisepos_e", "ip_address": "0.0.0.0", "label": "Blue Rabbit", "last_seen_at": 1695408232226, "livemode": false, "location": "tml_FDOtHwxAAdIJOh", "metadata": {}, "serial_number": "259cd19c-b902-4730-96a1-09183be6e7f7", "status": "online"}Initiates a SetupIntent flow on a Reader. See Save directly without charging for more details.
Parameters
- allow_
redisplayenumRequired This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow.
Possible enum valuesalwaysUse
alwaysto indicate that this payment method can always be shown to a customer in a checkout flow.limitedUse
limitedto indicate that this payment method can’t always be shown to a customer in a checkout flow. For example, it can only be shown in the context of a specific subscription.unspecifiedThis is the default value for payment methods where
allow_wasn’t set.redisplay - setup_
intentstringRequired The ID of the SetupIntent to process on the reader.
More parameters
- process_
configobject
Returns
Returns an updated Reader resource.
{ "id": "tmr_FDOt2wlRZEdpd7", "object": "terminal.reader", "action": { "failure_code": null, "failure_message": null, "process_setup_intent": { "setup_intent": "seti_1NtEXHLkdIwHu7ixcBcUmqfe" }, "status": "in_progress", "type": "process_setup_intent" }, "device_sw_version": "", "device_type": "simulated_wisepos_e", "ip_address": "0.0.0.0", "label": "Blue Rabbit", "last_seen_at": 1681320543815, "livemode": false, "location": "tml_FDOtHwxAAdIJOh", "metadata": {}, "serial_number": "259cd19c-b902-4730-96a1-09183be6e7f7", "status": "online"}Initiates an in-person refund on a Reader. See Refund an Interac Payment for more details.
Parameters
- amountinteger
A positive integer in cents representing how much of this charge to refund.
- chargestring
ID of the Charge to refund.
- metadataobject
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata. - payment_
intentstring ID of the PaymentIntent to refund.
- refund_
application_ feebooleanConnect only Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge.
- reverse_
transferbooleanConnect only Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount). A transfer can be reversed only by the application that created the charge.
More parameters
- refund_
payment_ configobject
Returns
Returns an updated Reader resource
{ "id": "tmr_njDFG9Z5k7y7KeQI8RmZYDYT", "object": "terminal.reader", "action": { "failure_code": null, "failure_message": null, "refund_payment": { "payment_intent": "pi_1NrpbFBHO5VeT9SUiCEDMdc8", "amount": 1000 }, "status": "in_progress", "type": "refund_payment" }, "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", "software": null, "status": "online"}