Simulate presenting a payment method Test helper
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_
presentobject Simulated data for the card_present payment method.
- card_present.
numberstring The card number, as a string without any separators.
- typeenum
Simulated payment type.
Possible enum valuescard
Simulate a
card
payment methodcard_
present Simulate a
card_
payment methodpresent interac_
present Simulate a
interac_
payment methodpresent
More parameters
- amount_
tipinteger Simulated on-reader tip amount.
- cardobject
Simulated data for the card payment method.
- card.
exp_ monthintegerRequired Two-digit number representing the card’s expiration month.
- card.
exp_ yearintegerRequired Two- or four-digit number representing the card’s expiration year.
- card.
numberstringRequired The card number, as a string without any separators.
- card.
cvcstring Card security code.
- interac_
presentobject Simulated data for the interac_present payment method.
- interac_present.
numberstring Card Number
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"}