Create a test-mode force capture Test helper
Allows the user to capture an arbitrary amount, also known as a forced capture.
Parameters
- amountintegerRequired
The total amount to attempt to capture. This amount is in the provided currency, or defaults to the cards currency, and in the smallest currency unit.
- cardstringRequired
Card associated with this transaction.
- currencyenum
The currency of the capture. If not provided, defaults to the currency of the card. Three-letter ISO currency code, in lowercase. Must be a supported currency.
More parameters
- merchant_
dataobject Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.
- merchant_data.
categorystring A categorization of the seller’s type of business. See our merchant categories guide for a list of possible values.
- merchant_data.
citystring City where the seller is located
- merchant_data.
countrystring Country where the seller is located
- merchant_data.
namestring Name of the seller
- merchant_data.
network_ idstring Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant.
- merchant_data.
postal_ codestring Postal code where the seller is located
- merchant_data.
statestring State where the seller is located
- merchant_data.
terminal_ idstring An ID assigned by the seller to the location of the sale.
- merchant_data.
urlstring URL provided by the merchant on a 3DS request
- purchase_
detailsobject Additional purchase information that is optionally provided by the merchant.
- purchase_details.
fleetobject Fleet-specific information for transactions using Fleet cards.
- purchase_details.
fleet. cardholder_ prompt_ dataobject Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
- purchase_details.
fleet. cardholder_prompt_data. driver_ idstring Driver ID.
- purchase_details.
fleet. cardholder_prompt_data. odometerinteger Odometer reading.
- purchase_details.
fleet. cardholder_prompt_data. unspecified_ idstring An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
- purchase_details.
fleet. cardholder_prompt_data. user_ idstring User ID.
- purchase_details.
fleet. cardholder_prompt_data. vehicle_ numberstring Vehicle number.
- purchase_details.
fleet. purchase_ typestring The type of purchase. One of
fuel_
,purchase non_
, orfuel_ purchase fuel_
.and_ non_ fuel_ purchase - purchase_details.
fleet. reported_ breakdownobject More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
- purchase_details.
fleet. reported_breakdown. fuelobject Breakdown of fuel portion of the purchase.
- purchase_details.
fleet. reported_breakdown. fuel. gross_ amount_ decimalstring Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
- purchase_details.
fleet. reported_breakdown. non_ fuelobject Breakdown of non-fuel portion of the purchase.
- purchase_details.
fleet. reported_breakdown. non_fuel. gross_ amount_ decimalstring Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
- purchase_details.
fleet. reported_breakdown. taxobject Information about tax included in this transaction.
- purchase_details.
fleet. reported_breakdown. tax. local_ amount_ decimalstring Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
- purchase_details.
fleet. reported_breakdown. tax. national_ amount_ decimalstring Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
- purchase_details.
fleet. service_ typestring The type of fuel service. One of
non_
,fuel_ transaction full_
, orservice self_
.service
- purchase_details.
flightobject Information about the flight that was purchased with this transaction.
- purchase_details.
flight. departure_ attimestamp The time that the flight departed.
- purchase_details.
flight. passenger_ namestring The name of the passenger.
- purchase_details.
flight. refundableboolean Whether the ticket is refundable.
- purchase_details.
flight. segmentsarray of objects The legs of the trip.
- purchase_details.
flight. segments. arrival_ airport_ codestring The three-letter IATA airport code of the flight’s destination.
- purchase_details.
flight. segments. carrierstring The airline carrier code.
- purchase_details.
flight. segments. departure_ airport_ codestring The three-letter IATA airport code that the flight departed from.
- purchase_details.
flight. segments. flight_ numberstring The flight number.
- purchase_details.
flight. segments. service_ classstring The flight’s service class.
- purchase_details.
flight. segments. stopover_ allowedboolean Whether a stopover is allowed on this flight.
- purchase_details.
flight. travel_ agencystring The travel agency that issued the ticket.
- purchase_details.
fuelobject Information about fuel that was purchased with this transaction.
- purchase_details.
fuel. industry_ product_ codestring Conexxus Payment System Product Code identifying the primary fuel product purchased.
- purchase_details.
fuel. quantity_ decimalstring The quantity of
unit
s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. - purchase_details.
fuel. typestring The type of fuel that was purchased. One of
diesel
,unleaded_
,plus unleaded_
,regular unleaded_
, orsuper other
. - purchase_details.
fuel. unitstring The units for
quantity_
. One ofdecimal charging_
,minute imperial_
,gallon kilogram
,kilowatt_
,hour liter
,pound
,us_
, orgallon other
. - purchase_details.
fuel. unit_ cost_ decimalstring The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
- purchase_details.
lodgingobject Information about lodging that was purchased with this transaction.
- purchase_details.
lodging. check_ in_ attimestamp The time of checking into the lodging.
- purchase_details.
lodging. nightsinteger The number of nights stayed at the lodging.
- purchase_details.
receiptarray of objects The line items in the purchase.
- purchase_details.
referencestring A merchant-specific order number.
Returns
A Transaction object
{ "id": "ipi_1GswaK2eZvKYlo2Co7wmNJhD", "object": "issuing.transaction", "amount": -1000, "amount_details": { "atm_fee": null, "cashback_amount": null }, "authorization": "iauth_1GswaJ2eZvKYlo2Ct9mFMJ4S", "balance_transaction": "txn_1GswaK2eZvKYlo2CJAFFIuHg", "card": "ic_1Gswa82eZvKYlo2CP2jveFil", "cardholder": "ich_1Gswa82eZvKYlo2CvobneLSo", "created": 1591905672, "currency": "usd", "dispute": null, "livemode": false, "merchant_amount": -1000, "merchant_currency": "usd", "merchant_data": { "category": "computer_software_stores", "category_code": "5734", "city": "SAN FRANCISCO", "country": "US", "name": "STRIPE.COM", "network_id": "1234567890", "postal_code": "94103", "state": "CA", "terminal_id": null }, "metadata": { "order_id": "6735" }, "redaction": null, "type": "capture", "wallet": null}